openMSX
Public Member Functions | Public Attributes | List of all members
opt_impl::optional_base< T > Struct Template Reference

#include <optional.hh>

Public Member Functions

constexpr optional_base () noexcept
 
constexpr optional_base (const T &v)
 
constexpr optional_base (T &&v)
 
template<typename... Args>
 optional_base (in_place_t, Args &&... args)
 
template<typename U , typename... Args, std::enable_if_t< std::is_constructible< T, std::initializer_list< U >>::value > * = nullptr>
 optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~optional_base ()
 

Public Attributes

bool init_
 
storage_t< T > storage_
 

Detailed Description

template<typename T>
struct opt_impl::optional_base< T >

Definition at line 148 of file optional.hh.

Constructor & Destructor Documentation

◆ optional_base() [1/5]

template<typename T >
constexpr opt_impl::optional_base< T >::optional_base ( )
inlinenoexcept

Definition at line 152 of file optional.hh.

◆ optional_base() [2/5]

template<typename T >
constexpr opt_impl::optional_base< T >::optional_base ( const T &  v)
inlineexplicit

Definition at line 157 of file optional.hh.

◆ optional_base() [3/5]

template<typename T >
constexpr opt_impl::optional_base< T >::optional_base ( T &&  v)
inlineexplicit

Definition at line 161 of file optional.hh.

◆ optional_base() [4/5]

template<typename T >
template<typename... Args>
opt_impl::optional_base< T >::optional_base ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

Definition at line 167 of file optional.hh.

◆ optional_base() [5/5]

template<typename T >
template<typename U , typename... Args, std::enable_if_t< std::is_constructible< T, std::initializer_list< U >>::value > * = nullptr>
opt_impl::optional_base< T >::optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

Definition at line 175 of file optional.hh.

◆ ~optional_base()

template<typename T >
opt_impl::optional_base< T >::~optional_base ( )
inline

Definition at line 181 of file optional.hh.

References opt_impl::storage_t< T >::value_.

Member Data Documentation

◆ init_

template<typename T >
bool opt_impl::optional_base< T >::init_

Definition at line 149 of file optional.hh.

◆ storage_

template<typename T >
storage_t<T> opt_impl::optional_base< T >::storage_

Definition at line 150 of file optional.hh.


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