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

#include <Optional.h>

Public Member Functions

constexpr optional_base () noexcept
 
constexpr optional_base (const optional_base< T > &v)
 
constexpr optional_base (const T &v)
 
constexpr optional_base (optional_base< T > &&v) noexcept(std::is_nothrow_move_constructible< T >::value)
 
constexpr optional_base (T &&v)
 
template<class... Args>
 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>
 optional_base (in_place_t, std::initializer_list< U > il, Args &&... args)
 
optional_baseoperator= (const optional_base &rhs)
 
optional_baseoperator= (optional_base &&rhs) noexcept(std::is_nothrow_move_assignable< T >::value &&std::is_nothrow_move_constructible< T >::value)
 
 ~optional_base ()
 
constexpr bool initialized () const noexcept
 
void setInitialized (bool init) noexcept
 

Public Attributes

bool init_
 
storage_t< T > storage_
 

Constructor & Destructor Documentation

◆ optional_base() [1/7]

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

◆ optional_base() [2/7]

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

◆ optional_base() [3/7]

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

◆ optional_base() [4/7]

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

◆ optional_base() [5/7]

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

◆ optional_base() [6/7]

template<class T >
template<class... Args>
c10::optional_base< T >::optional_base ( in_place_t  ,
Args &&...  args 
)
inlineexplicit

◆ 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>
c10::optional_base< T >::optional_base ( in_place_t  ,
std::initializer_list< U >  il,
Args &&...  args 
)
inlineexplicit

◆ ~optional_base()

template<class T >
c10::optional_base< T >::~optional_base ( )
inline

Member Function Documentation

◆ initialized()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setInitialized()

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

Member Data Documentation

◆ init_

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

◆ storage_

template<class T >
storage_t<T> c10::optional_base< T >::storage_

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