Ada 2.9.2
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
tl::detail::expected_storage_base< void, E, false, false > Struct Template Reference

#include <ada.h>

Public Member Functions

constexpr expected_storage_base ()
 
constexpr expected_storage_base (no_init_t)
 
constexpr expected_storage_base (in_place_t)
 
template<class... Args, detail::enable_if_t< std::is_constructible< E, Args &&... >::value > * = nullptr>
constexpr expected_storage_base (unexpect_t, Args &&...args)
 
template<class U, class... Args, detail::enable_if_t< std::is_constructible< E, std::initializer_list< U > &, Args &&... >::value > * = nullptr>
constexpr expected_storage_base (unexpect_t, std::initializer_list< U > il, Args &&...args)
 
 ~expected_storage_base ()
 
constexpr expected_storage_base ()
 
constexpr expected_storage_base (no_init_t)
 
constexpr expected_storage_base (in_place_t, Args &&...args)
 
constexpr expected_storage_base (in_place_t, std::initializer_list< U > il, Args &&...args)
 
constexpr expected_storage_base (unexpect_t, Args &&...args)
 
constexpr expected_storage_base (unexpect_t, std::initializer_list< U > il, Args &&...args)
 
 ~expected_storage_base ()
 

Public Attributes

union tl::detail::expected_storage_base< void, E, false, false >:: { ... }  
 
bool m_has_val
 
void m_val
 
unexpected< E > m_unexpect
 
char m_no_init
 
union { 
 
   T   m_val 
 
   unexpected< E >   m_unexpect 
 
   char   m_no_init 
 
};  
 
bool m_has_val
 

Detailed Description

template<class E>
struct tl::detail::expected_storage_base< void, E, false, false >

Definition at line 2563 of file ada.h.

Constructor & Destructor Documentation

◆ expected_storage_base() [1/11]

template<class E>
tl::detail::expected_storage_base< void, E, false, false >::expected_storage_base ( )
inlineconstexpr

Definition at line 2564 of file ada.h.

References m_dummy, and m_has_val.

◆ expected_storage_base() [2/11]

template<class E>
tl::detail::expected_storage_base< void, E, false, false >::expected_storage_base ( no_init_t )
inlineconstexpr

Definition at line 2565 of file ada.h.

References m_dummy, and m_has_val.

◆ expected_storage_base() [3/11]

template<class E>
tl::detail::expected_storage_base< void, E, false, false >::expected_storage_base ( in_place_t )
inlineconstexpr

Definition at line 2567 of file ada.h.

References m_dummy, and m_has_val.

◆ expected_storage_base() [4/11]

template<class E>
template<class... Args, detail::enable_if_t< std::is_constructible< E, Args &&... >::value > * = nullptr>
tl::detail::expected_storage_base< void, E, false, false >::expected_storage_base ( unexpect_t ,
Args &&... args )
inlineexplicitconstexpr

Definition at line 2572 of file ada.h.

References m_has_val, and m_unexpect.

◆ expected_storage_base() [5/11]

template<class E>
template<class U, class... Args, detail::enable_if_t< std::is_constructible< E, std::initializer_list< U > &, Args &&... >::value > * = nullptr>
tl::detail::expected_storage_base< void, E, false, false >::expected_storage_base ( unexpect_t ,
std::initializer_list< U > il,
Args &&... args )
inlineexplicitconstexpr

Definition at line 2578 of file ada.h.

References m_has_val, and m_unexpect.

◆ ~expected_storage_base() [1/2]

template<class E>
tl::detail::expected_storage_base< void, E, false, false >::~expected_storage_base ( )
inline

Definition at line 2583 of file ada.h.

References m_has_val, and m_unexpect.

◆ expected_storage_base() [6/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( )
inlineconstexpr

Definition at line 2346 of file ada.h.

◆ expected_storage_base() [7/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( no_init_t )
inlineconstexpr

Definition at line 2347 of file ada.h.

◆ expected_storage_base() [8/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( in_place_t ,
Args &&... args )
inlineconstexpr

Definition at line 2352 of file ada.h.

◆ expected_storage_base() [9/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( in_place_t ,
std::initializer_list< U > il,
Args &&... args )
inlineconstexpr

Definition at line 2358 of file ada.h.

◆ expected_storage_base() [10/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( unexpect_t ,
Args &&... args )
inlineexplicitconstexpr

Definition at line 2364 of file ada.h.

◆ expected_storage_base() [11/11]

tl::detail::expected_storage_base< void, E, bool, bool >::expected_storage_base ( unexpect_t ,
std::initializer_list< U > il,
Args &&... args )
inlineexplicitconstexpr

Definition at line 2370 of file ada.h.

◆ ~expected_storage_base() [2/2]

tl::detail::expected_storage_base< void, E, bool, bool >::~expected_storage_base ( )
inline

Definition at line 2375 of file ada.h.

Member Data Documentation

◆ [union]

union { ... } tl::detail::expected_storage_base< void, E, bool, bool >

◆ []

union tl::detail::expected_storage_base< void, E, false, false > { ... } tl::detail::expected_storage_base< void, E, false, false >

◆ m_dummy

template<class E>
char tl::detail::expected_storage_base< void, E, false, false >::m_dummy

Definition at line 2591 of file ada.h.

Referenced by expected_storage_base(), expected_storage_base(), and expected_storage_base().

◆ m_has_val [1/2]

bool tl::detail::expected_storage_base< void, E, bool, bool >::m_has_val

Definition at line 2387 of file ada.h.

◆ m_has_val [2/2]

template<class E>
bool tl::detail::expected_storage_base< void, E, false, false >::m_has_val

◆ m_no_init

char tl::detail::expected_storage_base< void, E, bool, bool >::m_no_init

Definition at line 2385 of file ada.h.

◆ m_unexpect [1/2]

unexpected<E> tl::detail::expected_storage_base< void, E, bool, bool >::m_unexpect

Definition at line 2384 of file ada.h.

◆ m_unexpect [2/2]

template<class E>
unexpected<E> tl::detail::expected_storage_base< void, E, false, false >::m_unexpect

Definition at line 2590 of file ada.h.

Referenced by expected_storage_base(), expected_storage_base(), and ~expected_storage_base().

◆ m_val

void tl::detail::expected_storage_base< void, E, bool, bool >::m_val

Definition at line 2383 of file ada.h.


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