proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
tl::detail::optional_storage_base< T, bool > Struct Template Reference

#include <proxsuite/helpers/tl-optional.hpp>

Inheritance diagram for tl::detail::optional_storage_base< T, bool >:
[legend]
Collaboration diagram for tl::detail::optional_storage_base< T, bool >:
[legend]

Classes

struct  dummy
 

Public Member Functions

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

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 tl::detail::optional_storage_base< T, bool >

Definition at line 431 of file tl-optional.hpp.

Constructor & Destructor Documentation

◆ optional_storage_base() [1/2]

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

Definition at line 433 of file tl-optional.hpp.

◆ optional_storage_base() [2/2]

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

Definition at line 440 of file tl-optional.hpp.

◆ ~optional_storage_base()

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

Definition at line 446 of file tl-optional.hpp.

Member Data Documentation

◆ m_dummy

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

Definition at line 458 of file tl-optional.hpp.

◆ m_value

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

Definition at line 459 of file tl-optional.hpp.

◆ [union]

union { ... } tl::detail::optional_storage_base< T, bool >

◆ m_has_value

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

Definition at line 462 of file tl-optional.hpp.


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