NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nonstd::optional_lite::optional< T > Class Template Reference

class optional More...

#include <optional-lite.hpp>

Public Types

typedef T value_type
 

Public Member Functions

optional_constexpr optional () optional_noexcept
 
optional_constexpr optional (nullopt_t) optional_noexcept
 
optional_constexpr14 optional (optional const &other)
 
template<typename U >
 optional (optional< U > const &other)
 
 optional (value_type const &value)
 
 ~optional ()
 
optionaloperator= (nullopt_t) optional_noexcept
 
optionaloperator= (optional const &other)
 
template<typename U >
optionaloperator= (U const &value)
 
template<typename U >
optionaloperator= (optional< U > const &other)
 
void swap (optional &other)
 
optional_constexpr value_type const * operator-> () const
 
optional_constexpr14 value_typeoperator-> ()
 
optional_constexpr value_type const & operator* () const optional_ref_qual
 
optional_constexpr14 value_typeoperator* () optional_ref_qual
 
optional_constexpr operator safe_bool () const optional_noexcept
 
optional_constexpr bool has_value () const optional_noexcept
 
optional_constexpr14 value_type const & value () const optional_ref_qual
 
optional_constexpr14 value_typevalue () optional_ref_qual
 
template<typename U >
optional_constexpr value_type value_or (U const &v) const
 
void reset () optional_noexcept
 

Detailed Description

template<typename T>
class nonstd::optional_lite::optional< T >

class optional

optional access error

optional

Definition at line 594 of file optional-lite.hpp.

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T nonstd::optional_lite::optional< T >::value_type

Definition at line 942 of file optional-lite.hpp.

Constructor & Destructor Documentation

◆ optional() [1/5]

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::optional ( )
inline

Definition at line 947 of file optional-lite.hpp.

◆ optional() [2/5]

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::optional ( nullopt_t  )
inline

Definition at line 954 of file optional-lite.hpp.

◆ optional() [3/5]

◆ optional() [4/5]

◆ optional() [5/5]

template<typename T>
nonstd::optional_lite::optional< T >::optional ( value_type const &  value)
inline

Definition at line 1155 of file optional-lite.hpp.

◆ ~optional()

template<typename T>
nonstd::optional_lite::optional< T >::~optional ( )
inline

Definition at line 1164 of file optional-lite.hpp.

Member Function Documentation

◆ operator=() [1/4]

template<typename T>
optional& nonstd::optional_lite::optional< T >::operator= ( nullopt_t  )
inline

Definition at line 1175 of file optional-lite.hpp.

◆ operator=() [2/4]

template<typename T>
optional& nonstd::optional_lite::optional< T >::operator= ( optional< T > const &  other)
inline

◆ operator=() [3/4]

template<typename T>
template<typename U >
optional& nonstd::optional_lite::optional< T >::operator= ( U const &  value)
inline

Definition at line 1251 of file optional-lite.hpp.

References nonstd::optional_lite::optional< T >::value().

◆ operator=() [4/4]

template<typename T>
template<typename U >
optional& nonstd::optional_lite::optional< T >::operator= ( optional< U > const &  other)
inline

◆ swap()

◆ operator->() [1/2]

template<typename T>
optional_constexpr value_type const* nonstd::optional_lite::optional< T >::operator-> ( ) const
inline

Definition at line 1364 of file optional-lite.hpp.

◆ operator->() [2/2]

template<typename T>
optional_constexpr14 value_type* nonstd::optional_lite::optional< T >::operator-> ( )
inline

Definition at line 1370 of file optional-lite.hpp.

◆ operator*() [1/2]

template<typename T>
optional_constexpr value_type const& nonstd::optional_lite::optional< T >::operator* ( ) const
inline

Definition at line 1376 of file optional-lite.hpp.

◆ operator*() [2/2]

◆ operator safe_bool()

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::operator safe_bool ( ) const
inline

Definition at line 1408 of file optional-lite.hpp.

◆ has_value()

◆ value() [1/2]

template<typename T>
optional_constexpr14 value_type const& nonstd::optional_lite::optional< T >::value ( ) const
inline

Definition at line 1421 of file optional-lite.hpp.

Referenced by nonstd::optional_lite::optional< T >::operator=().

◆ value() [2/2]

◆ value_or()

template<typename T>
template<typename U >
optional_constexpr value_type nonstd::optional_lite::optional< T >::value_or ( U const &  v) const
inline

Definition at line 1483 of file optional-lite.hpp.

◆ reset()

template<typename T>
void nonstd::optional_lite::optional< T >::reset ( )
inline

The documentation for this class was generated from the following file: