scnlib  0.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
scn::wrap_default< T > Class Template Reference

#include <util.h>

Public Types

using value_type = T
 
using storage_type = detail::erased_storage< T >
 

Public Member Functions

 wrap_default ()=default
 
 wrap_default (value_type &&val)
 
wrap_defaultoperator= (value_type &&val)
 
constexpr bool has_value () const noexcept
 
constexpr operator bool () const noexcept
 
SCN_CONSTEXPR14 T & get () noexcept
 
SCN_CONSTEXPR14 const T & get () const noexcept
 
SCN_CONSTEXPR14 T & operator* () noexcept
 
SCN_CONSTEXPR14 const T & operator* () const noexcept
 
SCN_CONSTEXPR14 T * operator-> () noexcept
 
SCN_CONSTEXPR14 const T * operator-> () const noexcept
 

Detailed Description

template<typename T>
class scn::wrap_default< T >

Definition at line 826 of file util.h.

Member Typedef Documentation

template<typename T >
using scn::wrap_default< T >::storage_type = detail::erased_storage<T>

Definition at line 829 of file util.h.

template<typename T >
using scn::wrap_default< T >::value_type = T

Definition at line 828 of file util.h.

Constructor & Destructor Documentation

template<typename T >
scn::wrap_default< T >::wrap_default ( )
default
template<typename T >
scn::wrap_default< T >::wrap_default ( value_type &&  val)
inline

Definition at line 833 of file util.h.

Member Function Documentation

template<typename T >
SCN_CONSTEXPR14 T& scn::wrap_default< T >::get ( )
inlinenoexcept

Definition at line 849 of file util.h.

template<typename T >
SCN_CONSTEXPR14 const T& scn::wrap_default< T >::get ( ) const
inlinenoexcept

Definition at line 853 of file util.h.

template<typename T >
constexpr bool scn::wrap_default< T >::has_value ( ) const
inlinenoexcept

Definition at line 840 of file util.h.

template<typename T >
constexpr scn::wrap_default< T >::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 844 of file util.h.

template<typename T >
SCN_CONSTEXPR14 T& scn::wrap_default< T >::operator* ( )
inlinenoexcept

Definition at line 858 of file util.h.

template<typename T >
SCN_CONSTEXPR14 const T& scn::wrap_default< T >::operator* ( ) const
inlinenoexcept

Definition at line 862 of file util.h.

template<typename T >
SCN_CONSTEXPR14 T* scn::wrap_default< T >::operator-> ( )
inlinenoexcept

Definition at line 867 of file util.h.

template<typename T >
SCN_CONSTEXPR14 const T* scn::wrap_default< T >::operator-> ( ) const
inlinenoexcept

Definition at line 871 of file util.h.

template<typename T >
wrap_default& scn::wrap_default< T >::operator= ( value_type &&  val)
inline

Definition at line 834 of file util.h.


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