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

Definition at line 414 of file optional.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 743 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 748 of file optional.hpp.

◆ optional() [2/5]

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

Definition at line 754 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 760 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 812 of file optional.hpp.

◆ optional() [5/5]

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

Definition at line 933 of file optional.hpp.

◆ ~optional()

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

Definition at line 942 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 951 of file optional.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

◆ operator=() [4/4]

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

Definition at line 1050 of file optional.hpp.

◆ swap()

◆ operator ->() [1/2]

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

Definition at line 1129 of file optional.hpp.

◆ operator ->() [2/2]

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

Definition at line 1135 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 1141 of file optional.hpp.

◆ operator *() [2/2]

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

Definition at line 1147 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 1173 of file optional.hpp.

◆ has_value()

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

◆ value() [1/2]

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

Definition at line 1184 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 1192 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 1231 of file optional.hpp.

◆ reset()

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

Definition at line 1240 of file optional.hpp.

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

Friends And Related Function Documentation

◆ optional

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

Definition at line 738 of file optional.hpp.


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