Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
std::experimental::optional< T & > Class Template Reference

template<class T>
class std::experimental::optional< T & >

Definition at line 621 of file optional.hpp.

Public Member Functions

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

Private Attributes

Tref
 

#include <optional.hpp>

Constructor & Destructor Documentation

◆ optional() [1/7]

template<class T >
constexpr std::experimental::optional< T & >::optional ( )
inlineconstexprnoexcept

Definition at line 630 of file optional.hpp.

◆ optional() [2/7]

template<class T >
constexpr std::experimental::optional< T & >::optional ( nullopt_t  )
inlineconstexprnoexcept

Definition at line 632 of file optional.hpp.

◆ optional() [3/7]

template<class T >
constexpr std::experimental::optional< T & >::optional ( T v)
inlineconstexprnoexcept

Definition at line 634 of file optional.hpp.

◆ optional() [4/7]

template<class T >
std::experimental::optional< T & >::optional ( T &&  )
delete

◆ optional() [5/7]

template<class T >
constexpr std::experimental::optional< T & >::optional ( const optional< T & > &  rhs)
inlineconstexprnoexcept

Definition at line 638 of file optional.hpp.

◆ optional() [6/7]

template<class T >
constexpr std::experimental::optional< T & >::optional ( in_place_t  ,
T v 
)
inlineexplicitconstexprnoexcept

Definition at line 640 of file optional.hpp.

◆ optional() [7/7]

template<class T >
std::experimental::optional< T & >::optional ( in_place_t  ,
T &&   
)
explicitdelete

◆ ~optional()

template<class T >
std::experimental::optional< T & >::~optional ( )
default

Member Function Documentation

◆ emplace() [1/2]

template<class T >
void std::experimental::optional< T & >::emplace ( T &&  )
delete

◆ emplace() [2/2]

template<class T >
void std::experimental::optional< T & >::emplace ( T v)
inlinenoexcept

Definition at line 683 of file optional.hpp.

◆ has_value()

template<class T >
constexpr bool std::experimental::optional< T & >::has_value ( ) const
inlineconstexprnoexcept

Definition at line 712 of file optional.hpp.

◆ operator bool()

template<class T >
constexpr std::experimental::optional< T & >::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 708 of file optional.hpp.

◆ operator*()

template<class T >
constexpr T & std::experimental::optional< T & >::operator* ( ) const
inlineconstexpr

Definition at line 700 of file optional.hpp.

◆ operator->()

template<class T >
constexpr T * std::experimental::optional< T & >::operator-> ( ) const
inlineconstexpr

Definition at line 696 of file optional.hpp.

◆ operator=() [1/3]

template<class T >
optional & std::experimental::optional< T & >::operator= ( nullopt_t  )
inlinenoexcept

Definition at line 647 of file optional.hpp.

◆ operator=() [2/3]

template<class T >
template<typename U >
auto std::experimental::optional< T & >::operator= ( U &&  rhs) -> typename enable_if< !is_same< typename decay< U >::type, optional< T & > >::value, optional & >::type=delete
deletenoexcept

◆ operator=() [3/3]

template<class T >
template<typename U >
auto std::experimental::optional< T & >::operator= ( U &&  rhs) -> typename enable_if < is_same<typename decay<U>::type, optional<T&>>::value, optional& >::type
inlinenoexcept

Definition at line 663 of file optional.hpp.

◆ reset()

template<class T >
void std::experimental::optional< T & >::reset ( )
inlinenoexcept

Definition at line 723 of file optional.hpp.

◆ swap()

template<class T >
void std::experimental::optional< T & >::swap ( optional< T & > &  rhs)
inlinenoexcept

Definition at line 690 of file optional.hpp.

◆ value()

template<class T >
constexpr T & std::experimental::optional< T & >::value ( ) const
inlineconstexpr

Definition at line 704 of file optional.hpp.

◆ value_or()

template<class T >
template<class V >
constexpr decay< T >::type std::experimental::optional< T & >::value_or ( V &&  v) const
inlineconstexpr

Definition at line 717 of file optional.hpp.

Member Data Documentation

◆ ref

template<class T >
T* std::experimental::optional< T & >::ref
private

Definition at line 625 of file optional.hpp.


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