aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <Optional.h>
Public Types | |
using | ValueType = T |
Public Member Functions | |
Optional () | |
Optional (const T &val) | |
Optional (T &&val) | |
~Optional () | |
template<typename U = T, typename std::enable_if< !IsSpecializationOf< typename std::decay< U >::type, Aws::Crt::Optional >::value, bool >::type = true> | |
Optional & | operator= (U &&u) |
Optional (const Optional< T > &other) | |
Optional (Optional< T > &&other) | |
template<typename... Args> | |
Optional (Aws::Crt::InPlaceT, Args &&...args) | |
Optional< T > & | operator= (const Optional &other) |
template<typename U = T> | |
Optional< T > & | operator= (const Optional< U > &other) |
template<typename U = T> | |
Optional< T > & | operator= (Optional< U > &&other) |
template<typename... Args> | |
T & | emplace (Args &&...args) |
const T * | operator-> () const |
T * | operator-> () |
const T & | operator* () const & |
T & | operator* () & |
const T && | operator* () const && |
T && | operator* () && |
operator bool () const noexcept | |
bool | has_value () const noexcept |
T & | value () & |
const T & | value () const & |
T && | value () && |
const T && | value () const && |
void | reset () |
Custom implementation of an Option type. std::optional requires C++17
T | type of the optional value |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Assignment operator for a case when the parameter type is not Optional.
|
inline |
|
inline |
|
inline |