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 () optional_is_default explicit storage_t(value_type const &v)
 
void construct_value (value_type const &v)
 
void destruct_value ()
 
optional_nodiscard value_type const * value_ptr () const
 
value_typevalue_ptr ()
 
optional_nodiscard value_type const & value () const optional_ref_qual
 
value_typevalue () optional_ref_qual
 
typedef optional_ALIGN_AS (value_type) align_as_type
 
optional_nodiscard void * ptr () optional_noexcept
 
optional_nodiscard void const * ptr () const optional_noexcept
 
template<typename U >
optional_nodiscard U * as ()
 
template<typename U >
optional_nodiscard 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 676 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 681 of file optional.hpp.

Constructor & Destructor Documentation

◆ storage_t()

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

Definition at line 683 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 721 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 731 of file optional.hpp.

◆ value() [1/2]

template<typename T >
optional_nodiscard 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 741 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 >
optional_nodiscard void* nonstd::optional_lite::detail::storage_t< T >::ptr ( )
inline

◆ ptr() [2/2]

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

Definition at line 787 of file optional.hpp.

◆ as() [1/2]

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

Definition at line 793 of file optional.hpp.

◆ as() [2/2]

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

Definition at line 799 of file optional.hpp.

Member Data Documentation

◆ data


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