QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
std::experimental::constexpr_optional_base< T > Struct Template Reference

#include "optional.hpp"

Public Member Functions

constexpr constexpr_optional_base () noexcept
 
constexpr constexpr_optional_base (const T &v)
 
constexpr constexpr_optional_base (T &&v)
 
template<class... Args>
constexpr constexpr_optional_base (in_place_t, Args &&... args)
 
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(is_constructible< T, std::initializer_list< U > >) >
OPTIONAL_CONSTEXPR_INIT_LIST constexpr_optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~constexpr_optional_base ()=default
 

Public Attributes

bool init_
 
constexpr_storage_t< T > storage_
 

Constructor & Destructor Documentation

◆ constexpr_optional_base() [1/5]

template<class T >
constexpr std::experimental::constexpr_optional_base< T >::constexpr_optional_base ( )
inlineconstexprnoexcept
338: init_(false), storage_(trivial_init) {};
constexpr struct std::experimental::trivial_init_t trivial_init
constexpr_storage_t< T > storage_
Definition optional.hpp:336
bool init_
Definition optional.hpp:335

◆ constexpr_optional_base() [2/5]

template<class T >
constexpr std::experimental::constexpr_optional_base< T >::constexpr_optional_base ( const T &  v)
inlineexplicitconstexpr
340: init_(true), storage_(v) {}

◆ constexpr_optional_base() [3/5]

template<class T >
constexpr std::experimental::constexpr_optional_base< T >::constexpr_optional_base ( T &&  v)
inlineexplicitconstexpr
342: init_(true), storage_(constexpr_move(v)) {}
constexpr std::remove_reference< T >::type && constexpr_move(T &&t) noexcept
Definition optional.hpp:193

◆ constexpr_optional_base() [4/5]

template<class T >
template<class... Args>
constexpr std::experimental::constexpr_optional_base< T >::constexpr_optional_base ( in_place_t  ,
Args &&...  args 
)
inlineexplicitconstexpr
345 : init_(true), storage_(constexpr_forward<Args>(args)...) {}

◆ constexpr_optional_base() [5/5]

template<class T >
template<class U , class... Args, TR2_OPTIONAL_REQUIRES(is_constructible< T, std::initializer_list< U > >) >
OPTIONAL_CONSTEXPR_INIT_LIST std::experimental::constexpr_optional_base< T >::constexpr_optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit
349 : init_(true), storage_(il, std::forward<Args>(args)...) {}

◆ ~constexpr_optional_base()

Member Data Documentation

◆ init_

◆ storage_


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