PyTorch
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
c10::constexpr_optional_base< T > Struct Template Reference

#include <Optional.h>

Public Member Functions

constexpr constexpr_optional_base () noexcept
 
constexpr constexpr_optional_base (const constexpr_optional_base< T > &v)
 
constexpr constexpr_optional_base (constexpr_optional_base< T > &&v) noexcept(std::is_nothrow_move_constructible< T >::value)
 
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, typename std::enable_if< std::is_constructible< T, std::initializer_list< U > > ::value, bool >::type = false>
constexpr constexpr_optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~constexpr_optional_base ()=default
 
constexpr_optional_baseoperator= (const constexpr_optional_base &rhs)
 
constexpr_optional_baseoperator= (constexpr_optional_base &&rhs) noexcept(std::is_nothrow_move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value)
 
constexpr bool initialized () const noexcept
 
void setInitialized (bool init) noexcept
 

Public Attributes

bool init_
 
constexpr_storage_t< T > storage_
 

Constructor & Destructor Documentation

◆ constexpr_optional_base() [1/7]

template<class T >
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( )
inlineconstexprnoexcept

◆ constexpr_optional_base() [2/7]

template<class T >
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( const constexpr_optional_base< T > &  v)
inlineexplicitconstexpr

◆ constexpr_optional_base() [3/7]

template<class T >
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( constexpr_optional_base< T > &&  v)
inlineexplicitconstexprnoexcept

◆ constexpr_optional_base() [4/7]

template<class T >
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( const T &  v)
inlineexplicitconstexpr

◆ constexpr_optional_base() [5/7]

template<class T >
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( T &&  v)
inlineexplicitconstexpr

◆ constexpr_optional_base() [6/7]

template<class T >
template<class... Args>
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( in_place_t  ,
Args &&...  args 
)
inlineexplicitconstexpr

◆ constexpr_optional_base() [7/7]

template<class T >
template<class U , class... Args, typename std::enable_if< std::is_constructible< T, std::initializer_list< U > > ::value, bool >::type = false>
constexpr c10::constexpr_optional_base< T >::constexpr_optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicitconstexpr

◆ ~constexpr_optional_base()

template<class T >
c10::constexpr_optional_base< T >::~constexpr_optional_base ( )
default

Member Function Documentation

◆ initialized()

template<class T >
constexpr bool c10::constexpr_optional_base< T >::initialized ( ) const
inlineconstexprnoexcept

◆ operator=() [1/2]

template<class T >
constexpr_optional_base & c10::constexpr_optional_base< T >::operator= ( const constexpr_optional_base< T > &  rhs)
inline

◆ operator=() [2/2]

template<class T >
constexpr_optional_base & c10::constexpr_optional_base< T >::operator= ( constexpr_optional_base< T > &&  rhs)
inlinenoexcept

◆ setInitialized()

template<class T >
void c10::constexpr_optional_base< T >::setInitialized ( bool  init)
inlinenoexcept

Member Data Documentation

◆ init_

template<class T >
bool c10::constexpr_optional_base< T >::init_

◆ storage_

template<class T >
constexpr_storage_t<T> c10::constexpr_optional_base< T >::storage_

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