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

C++03 constructed union to hold value. More...

#include <optional.hpp>

Inheritance diagram for nonstd::optional_lite::detail::storage_t< T >:
Collaboration diagram for nonstd::optional_lite::detail::storage_t< T >:

Classes

struct  aligned_storage_t
 

Public Types

typedef T value_type
 

Public Member Functions

 storage_t ()
 
 storage_t (value_type const &v)
 
void construct_value (value_type const &v)
 
void destruct_value ()
 
value_type const * value_ptr () const
 
value_typevalue_ptr ()
 
value_type const & value () const optional_ref_qual
 
value_typevalue () optional_ref_qual
 
typedef optional_ALIGN_AS (value_type) align_as_type
 
void * ptr () optional_noexcept
 
void const * ptr () const optional_noexcept
 
template<typename U >
U * as ()
 
template<typename U >
U const * as () const
 

Public Attributes

aligned_storage_t data
 

Detailed Description

template<typename T>
union nonstd::optional_lite::detail::storage_t< T >

C++03 constructed union to hold value.

Definition at line 577 of file optional.hpp.

Member Typedef Documentation

◆ value_type

template<typename T>
typedef T nonstd::optional_lite::detail::storage_t< T >::value_type

Definition at line 582 of file optional.hpp.

Constructor & Destructor Documentation

◆ storage_t() [1/2]

template<typename T>
nonstd::optional_lite::detail::storage_t< T >::storage_t ( )
inline

Definition at line 584 of file optional.hpp.

◆ storage_t() [2/2]

template<typename T>
nonstd::optional_lite::detail::storage_t< T >::storage_t ( value_type const &  v)
inline

Definition at line 586 of file optional.hpp.

Member Function Documentation

◆ construct_value()

template<typename T>
void nonstd::optional_lite::detail::storage_t< T >::construct_value ( value_type const &  v)
inline

◆ destruct_value()

template<typename T>
void nonstd::optional_lite::detail::storage_t< T >::destruct_value ( )
inline

Definition at line 622 of file optional.hpp.

◆ value_ptr() [1/2]

◆ value_ptr() [2/2]

template<typename T>
value_type* nonstd::optional_lite::detail::storage_t< T >::value_ptr ( )
inline

Definition at line 632 of file optional.hpp.

◆ value() [1/2]

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

◆ value() [2/2]

template<typename T>
value_type& nonstd::optional_lite::detail::storage_t< T >::value ( )
inline

Definition at line 642 of file optional.hpp.

◆ optional_ALIGN_AS()

template<typename T>
typedef nonstd::optional_lite::detail::storage_t< T >::optional_ALIGN_AS ( value_type  )

◆ ptr() [1/2]

template<typename T>
void* nonstd::optional_lite::detail::storage_t< T >::ptr ( )
inline

◆ ptr() [2/2]

template<typename T>
void const* nonstd::optional_lite::detail::storage_t< T >::ptr ( ) const
inline

Definition at line 688 of file optional.hpp.

◆ as() [1/2]

template<typename T>
template<typename U >
U* nonstd::optional_lite::detail::storage_t< T >::as ( )
inline

Definition at line 694 of file optional.hpp.

◆ as() [2/2]

template<typename T>
template<typename U >
U const* nonstd::optional_lite::detail::storage_t< T >::as ( ) const
inline

Definition at line 700 of file optional.hpp.

Member Data Documentation

◆ data


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