scc 2025.09
SystemC components library
nonstd::detail::optional_storage_base< T, bool > Struct Template Reference
Inheritance diagram for nonstd::detail::optional_storage_base< T, bool >:
Collaboration diagram for nonstd::detail::optional_storage_base< T, bool >:

Classes

struct  dummy

Public Member Functions

template<class... U>
TL_OPTIONAL_11_CONSTEXPR optional_storage_base (in_place_t, U &&... u)

Public Attributes

union { 
   dummy   m_dummy 
   T   m_value 
}; 
bool m_has_value

Detailed Description

template<class T, bool = ::std::is_trivially_destructible<T>::value>
struct nonstd::detail::optional_storage_base< T, bool >

Definition at line 288 of file optional.hpp.

Constructor & Destructor Documentation

◆ optional_storage_base() [1/2]

template<class T, bool = ::std::is_trivially_destructible<T>::value>
TL_OPTIONAL_11_CONSTEXPR nonstd::detail::optional_storage_base< T, bool >::optional_storage_base ( )
inlinenoexcept

Definition at line 289 of file optional.hpp.

◆ optional_storage_base() [2/2]

template<class T, bool = ::std::is_trivially_destructible<T>::value>
template<class... U>
TL_OPTIONAL_11_CONSTEXPR nonstd::detail::optional_storage_base< T, bool >::optional_storage_base ( in_place_t ,
U &&... u )
inline

Definition at line 294 of file optional.hpp.

◆ ~optional_storage_base()

template<class T, bool = ::std::is_trivially_destructible<T>::value>
nonstd::detail::optional_storage_base< T, bool >::~optional_storage_base ( )
inline

Definition at line 298 of file optional.hpp.

Member Data Documentation

◆ m_dummy

template<class T, bool = ::std::is_trivially_destructible<T>::value>
dummy nonstd::detail::optional_storage_base< T, bool >::m_dummy

Definition at line 307 of file optional.hpp.

◆ m_has_value

template<class T, bool = ::std::is_trivially_destructible<T>::value>
bool nonstd::detail::optional_storage_base< T, bool >::m_has_value

Definition at line 311 of file optional.hpp.

◆ m_value

template<class T, bool = ::std::is_trivially_destructible<T>::value>
T nonstd::detail::optional_storage_base< T, bool >::m_value

Definition at line 308 of file optional.hpp.


The documentation for this struct was generated from the following file:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/common/nonstd/optional.hpp