scnlib  0.1.2
FormattedinputformodernC++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
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)
 
SCN_CONSTEXPR bool has_value () const noexcept
 
SCN_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 460 of file util.h.

Member Typedef Documentation

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

Definition at line 463 of file util.h.

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

Definition at line 462 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 467 of file util.h.

Member Function Documentation

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

Definition at line 483 of file util.h.

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

Definition at line 487 of file util.h.

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

Definition at line 474 of file util.h.

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

Definition at line 478 of file util.h.

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

Definition at line 492 of file util.h.

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

Definition at line 496 of file util.h.

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

Definition at line 501 of file util.h.

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

Definition at line 505 of file util.h.

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

Definition at line 468 of file util.h.


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