Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
nonstd::optional_lite::optional< T > Class Template Reference

class optional More...

#include <optional.hpp>

Public Types

typedef T value_type
 

Public Member Functions

optional_constexpr bool has_value () const optional_noexcept
 
optional_constexpr operator safe_bool () const optional_noexcept
 
optional_constexpr value_type const & operator* () const optional_ref_qual
 
optional_constexpr14 value_typeoperator* () optional_ref_qual
 
optional_constexpr value_type const * operator-> () const
 
optional_constexpr14 value_typeoperator-> ()
 
optionaloperator= (nullopt_t) optional_noexcept
 
optionaloperator= (optional const &rhs)
 
optional_constexpr optional () optional_noexcept
 
optional_constexpr optional (nullopt_t) optional_noexcept
 
 optional (optional const &rhs)
 
optional_constexpr optional (value_type const &value)
 
void reset () optional_noexcept
 
void swap (optional &rhs)
 
optional_constexpr14 value_type const & value () const optional_ref_qual
 
optional_constexpr14 value_typevalue () optional_ref_qual
 
template<class U >
optional_constexpr value_type value_or (U const &v) const
 
 ~optional ()
 

Private Types

typedef void(optional::* safe_bool) () const
 

Private Member Functions

template<typename V >
void initialize (V const &value)
 
void this_type_does_not_support_comparisons () const
 

Private Attributes

detail::storage_t< value_typecontained
 
bool has_value_
 

Detailed Description

template<typename T>
class nonstd::optional_lite::optional< T >

class optional

optional

Definition at line 238 of file optional.hpp.

Member Typedef Documentation

template<typename T>
typedef void(optional::* nonstd::optional_lite::optional< T >::safe_bool) () const
private

Definition at line 567 of file optional.hpp.

template<typename T>
typedef T nonstd::optional_lite::optional< T >::value_type

Definition at line 570 of file optional.hpp.

Constructor & Destructor Documentation

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::optional ( )
inline

Definition at line 572 of file optional.hpp.

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::optional ( nullopt_t  )
inline

Definition at line 577 of file optional.hpp.

template<typename T>
nonstd::optional_lite::optional< T >::optional ( optional< T > const &  rhs)
inline

Definition at line 582 of file optional.hpp.

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::optional ( value_type const &  value)
inline

Definition at line 598 of file optional.hpp.

template<typename T>
nonstd::optional_lite::optional< T >::~optional ( )
inline

Definition at line 624 of file optional.hpp.

Member Function Documentation

template<typename T>
optional_constexpr bool nonstd::optional_lite::optional< T >::has_value ( ) const
inline

Definition at line 750 of file optional.hpp.

template<typename T>
template<typename V >
void nonstd::optional_lite::optional< T >::initialize ( V const &  value)
inlineprivate

Definition at line 829 of file optional.hpp.

template<typename T>
optional_constexpr nonstd::optional_lite::optional< T >::operator safe_bool ( ) const
inline

Definition at line 744 of file optional.hpp.

template<typename T>
optional_constexpr value_type const& nonstd::optional_lite::optional< T >::operator* ( ) const
inline

Definition at line 711 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type& nonstd::optional_lite::optional< T >::operator* ( )
inline

Definition at line 717 of file optional.hpp.

template<typename T>
optional_constexpr value_type const* nonstd::optional_lite::optional< T >::operator-> ( ) const
inline

Definition at line 699 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type* nonstd::optional_lite::optional< T >::operator-> ( )
inline

Definition at line 705 of file optional.hpp.

template<typename T>
optional& nonstd::optional_lite::optional< T >::operator= ( nullopt_t  )
inline

Definition at line 632 of file optional.hpp.

template<typename T>
optional& nonstd::optional_lite::optional< T >::operator= ( optional< T > const &  rhs)
inline

Definition at line 638 of file optional.hpp.

template<typename T>
void nonstd::optional_lite::optional< T >::reset ( )
inline

Definition at line 817 of file optional.hpp.

template<typename T>
void nonstd::optional_lite::optional< T >::swap ( optional< T > &  rhs)
inline

Definition at line 686 of file optional.hpp.

template<typename T>
void nonstd::optional_lite::optional< T >::this_type_does_not_support_comparisons ( ) const
inlineprivate

Definition at line 826 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type const& nonstd::optional_lite::optional< T >::value ( ) const
inline

Definition at line 755 of file optional.hpp.

template<typename T>
optional_constexpr14 value_type& nonstd::optional_lite::optional< T >::value ( )
inline

Definition at line 763 of file optional.hpp.

template<typename T>
template<class U >
optional_constexpr value_type nonstd::optional_lite::optional< T >::value_or ( U const &  v) const
inline

Definition at line 808 of file optional.hpp.

Member Data Documentation

template<typename T>
detail::storage_t< value_type > nonstd::optional_lite::optional< T >::contained
private

Definition at line 848 of file optional.hpp.

template<typename T>
bool nonstd::optional_lite::optional< T >::has_value_
private

Definition at line 847 of file optional.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:19