Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions
c10::optional< T & > Class Template Reference

Public Member Functions

constexpr optional (nullopt_t) noexcept
 
template<typename U = T>
constexpr optional (U &u) noexcept
 
template<typename U = T>
 optional (U &&)=delete
 
constexpr optional (const optional &rhs) noexcept
 
constexpr optional (in_place_t, T &v) noexcept
 
 optional (in_place_t, T &&)=delete
 
optionaloperator= (nullopt_t) noexcept
 
template<typename U >
auto operator= (U &&rhs) noexcept-> typename std::enable_if< std::is_same< typename std::decay< U >::type, optional< T & >>::value, optional & >::type
 
template<typename U >
auto operator= (U &&rhs) noexcept-> typename std::enable_if< !std::is_same< typename std::decay< U >::type, optional< T & >>::value, optional & >::type=delete
 
void emplace (T &v) noexcept
 
void emplace (T &&)=delete
 
void swap (optional< T & > &rhs) noexcept
 
constexpr Toperator-> () const
 
constexpr Toperator* () const
 
constexpr Tvalue () const
 
constexpr operator bool () const noexcept
 
constexpr bool has_value () const noexcept
 
template<class V >
constexpr std::decay< T >::type value_or (V &&v) const
 
void reset () noexcept
 

Detailed Description

template<class T>
class c10::optional< T & >

Definition at line 665 of file Optional.h.


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