NIM PC Cross Platform SDK
|
#include <ne_stl_optional.h>
Public 类型 | |
using | _base_t = _optional_base< T > |
Public 成员函数 | |
_optional ()=default | |
_optional (const _optional &other) | |
_optional (const T &value) | |
_optional (std::nullptr_t) | |
_optional (std::nullopt_t) | |
template<class TValue > | |
_optional (const std::optional< TValue > &other) | |
template<class TValue > | |
operator std::optional< TValue > () const | |
template<class TValue > | |
operator _optional< TValue > () const | |
template<class TValue > | |
_optional (const TValue *other) | |
template<class TValue > | |
_optional & | operator= (const TValue *value) |
_optional & | operator= (const char *value) |
_optional & | operator= (std::nullptr_t) |
_optional & | operator= (std::nullopt_t) |
template<class TValue > | |
_optional & | operator= (const std::optional< TValue > &other) |
_optional & | operator= (const T &value) |
_optional & | operator= (const _optional &other) |
template<class TValue > | |
_optional & | operator= (const TValue &value) |
template<class TValue > | |
_optional & | operator= (const _optional< TValue > &other) |
bool | operator== (const _optional &other) const |
bool | operator!= (const _optional &other) const |
void | reset () |
const T & | value () const & |
T | value_or (T &&default_value) const & |
bool | has_value () const |
operator bool () const | |
const T * | operator-> () const |
T * | operator-> () |
const T & | operator* () const & |
T & | operator* () & |
const T && | operator* () const && |
T && | operator* () && |
Public 属性 | |
bool | has_value_ |
T | value_ |
Public 属性 继承自 nstd::_optional_base< T > | |
bool | has_value_ {false} |
T | value_ |
using nstd::_optional< T >::_base_t = _optional_base<T> |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool nstd::_optional_base< T >::has_value_ |
T nstd::_optional_base< T >::value_ |