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.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
 

Friends

template<typename >
class optional
 

Detailed Description

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

class optional

optional access error

optional

Definition at line 507 of file optional.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 846 of file optional.hpp.

Constructor & Destructor Documentation

◆ optional() [1/5]

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

Definition at line 851 of file optional.hpp.

◆ optional() [2/5]

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

Definition at line 858 of file optional.hpp.

◆ optional() [3/5]

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

Definition at line 864 of file optional.hpp.

◆ optional() [4/5]

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

Definition at line 924 of file optional.hpp.

◆ optional() [5/5]

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

Definition at line 1053 of file optional.hpp.

◆ ~optional()

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

Definition at line 1062 of file optional.hpp.

Member Function Documentation

◆ operator=() [1/4]

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

Definition at line 1073 of file optional.hpp.

◆ operator=() [2/4]

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

Definition at line 1094 of file optional.hpp.

◆ operator=() [3/4]

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

◆ operator=() [4/4]

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

Definition at line 1182 of file optional.hpp.

◆ swap()

template<typename T >
void nonstd::optional_lite::optional< T >::swap ( optional< T > &  other)
inline

◆ operator->() [1/2]

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

Definition at line 1262 of file optional.hpp.

◆ operator->() [2/2]

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

Definition at line 1268 of file optional.hpp.

◆ operator*() [1/2]

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

Definition at line 1274 of file optional.hpp.

◆ operator*() [2/2]

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

Definition at line 1280 of file optional.hpp.

◆ operator safe_bool()

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

Definition at line 1306 of file optional.hpp.

◆ has_value()

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

Definition at line 1313 of file optional.hpp.

◆ value() [1/2]

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

Definition at line 1319 of file optional.hpp.

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

◆ value() [2/2]

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

Definition at line 1332 of file optional.hpp.

◆ 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 1377 of file optional.hpp.

◆ reset()

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

Definition at line 1386 of file optional.hpp.

Friends And Related Function Documentation

◆ optional

template<typename T >
template<typename >
friend class optional
friend

Definition at line 841 of file optional.hpp.


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