#include <backports-optional.hpp>
Public Types | |
typedef T | value_type |
Public Member Functions | |
constexpr | optional () noexcept |
constexpr | optional (nullopt_t) noexcept |
constexpr | optional (const T &value) |
template<typename... Args> | |
constexpr | optional (in_place_t, Args &&... args) |
optional & | operator= (nullopt_t) noexcept |
optional & | operator= (const optional &other) |
template<typename U , typename = typename std::enable_if<std::is_same<typename std::decay<U>::type, T>::value>::type> | |
optional & | operator= (U &&value) |
constexpr const T * | operator-> () const |
T * | operator-> () |
constexpr const T & | operator* () const |
T & | operator* () |
constexpr | operator bool () const noexcept |
const T & | value () const |
T & | value () |
template<typename U > | |
constexpr T | value_or (U &&default_value) const |
void | swap (optional &other) |
template<typename... Args> | |
void | emplace (Args &&... args) |
Friends | |
bool | operator== (const optional< T > &, const optional< T > &) |
bool | operator!= (const optional< T > &, const optional< T > &) |
bool | operator (const optional< T > &, const optional< T > &) |
bool | operator (const optional< T > &, const optional< T > &) |
bool | operator> (const optional< T > &, const optional< T > &) |
bool | operator>= (const optional< T > &, const optional< T > &) |
Definition at line 93 of file backports-optional.hpp.
typedef T ndn::optional< T >::value_type |
Definition at line 154 of file backports-optional.hpp.
|
inlinenoexcept |
Definition at line 159 of file backports-optional.hpp.
|
inlinenoexcept |
Definition at line 164 of file backports-optional.hpp.
|
inline |
Definition at line 169 of file backports-optional.hpp.
|
inlineexplicit |
Definition at line 176 of file backports-optional.hpp.
|
inlinenoexcept |
Definition at line 182 of file backports-optional.hpp.
|
inline |
Definition at line 189 of file backports-optional.hpp.
|
inline |
Definition at line 198 of file backports-optional.hpp.
|
inline |
Definition at line 206 of file backports-optional.hpp.
|
inline |
Definition at line 212 of file backports-optional.hpp.
|
inline |
Definition at line 218 of file backports-optional.hpp.
|
inline |
Definition at line 224 of file backports-optional.hpp.
|
inlineexplicitnoexcept |
Definition at line 230 of file backports-optional.hpp.
|
inline |
Definition at line 236 of file backports-optional.hpp.
Referenced by ndn::optional< uint64_t >::operator=(), and ndn::optional< uint64_t >::value().
|
inline |
Definition at line 242 of file backports-optional.hpp.
|
inline |
Definition at line 256 of file backports-optional.hpp.
|
inline |
Definition at line 267 of file backports-optional.hpp.
|
inline |
Definition at line 274 of file backports-optional.hpp.
Referenced by ndn::nfd::FaceStatus::wireDecode(), and ndn::nfd::Route::wireDecode().
|
friend |
Definition at line 292 of file backports-optional.hpp.
|
friend |
Definition at line 299 of file backports-optional.hpp.
Definition at line 320 of file backports-optional.hpp.
|
friend |
Definition at line 327 of file backports-optional.hpp.