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

#include <Optional.h>

Public Member Functions

constexpr trivially_copyable_optimization_optional_base () noexcept
 
constexpr trivially_copyable_optimization_optional_base (const T &v)
 
constexpr trivially_copyable_optimization_optional_base (T &&v)
 
template<class... Args>
constexpr trivially_copyable_optimization_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 trivially_copyable_optimization_optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
 ~trivially_copyable_optimization_optional_base ()=default
 
constexpr bool initialized () const noexcept
 
void setInitialized (bool init) noexcept
 

Public Attributes

bool init_
 
constexpr_storage_t< T > storage_
 

Constructor & Destructor Documentation

◆ trivially_copyable_optimization_optional_base() [1/5]

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

◆ trivially_copyable_optimization_optional_base() [2/5]

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

◆ trivially_copyable_optimization_optional_base() [3/5]

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

◆ trivially_copyable_optimization_optional_base() [4/5]

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

◆ trivially_copyable_optimization_optional_base() [5/5]

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::trivially_copyable_optimization_optional_base< T >::trivially_copyable_optimization_optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicitconstexpr

◆ ~trivially_copyable_optimization_optional_base()

Member Function Documentation

◆ initialized()

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

◆ setInitialized()

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

Member Data Documentation

◆ init_

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

◆ storage_


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