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-lite.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 757 of file optional-lite.hpp.

Member Typedef Documentation

◆ value_type

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

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

Constructor & Destructor Documentation

◆ storage_t()

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

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

Member Function Documentation

◆ construct_value()

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

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

◆ destruct_value()

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

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

◆ value_ptr() [1/2]

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

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

◆ value_ptr() [2/2]

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

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

◆ value() [1/2]

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

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

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

◆ value() [2/2]

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

Definition at line 828 of file optional-lite.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

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

◆ ptr() [2/2]

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

Definition at line 874 of file optional-lite.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 880 of file optional-lite.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 886 of file optional-lite.hpp.

Member Data Documentation

◆ data

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


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