跳转至

Struct details::Storage

template <typename T, typename E>

ClassList > details > Storage

Public Types

Type Name
typedef std::aligned_storage< Size, Align >::type type

Public Attributes

Type Name
bool initialized_
type storage_

Public Static Attributes

Type Name
constexpr size_t Align = sizeof(T) &gt; sizeof(E) ? alignof(T) : alignof(E)
constexpr size_t Size = sizeof(T) &gt; sizeof(E) ? sizeof(T) : sizeof(E)

Public Functions

Type Name
Storage ()
void construct (types::Ok< T > ok)
void construct (types::Err< E > err)
void destroy (ok_tag)
void destroy (err_tag)
const U & get () const
U & get ()
void rawConstruct (U && val)

Public Types Documentation

typedef type

typedef std::aligned_storage<Size,Align>::type details::Storage< T, E >::type;

Public Attributes Documentation

variable initialized_

bool details::Storage< T, E >::initialized_;

variable storage_

type details::Storage< T, E >::storage_;

Public Static Attributes Documentation

variable Align

constexpr size_t details::Storage< T, E >::Align;

variable Size

constexpr size_t details::Storage< T, E >::Size;

Public Functions Documentation

function Storage

inline details::Storage::Storage () 

function construct [1/2]

inline void details::Storage::construct (
    types::Ok < T > ok
) 

function construct [2/2]

inline void details::Storage::construct (
    types::Err < E > err
) 

function destroy [1/2]

inline void details::Storage::destroy (
    ok_tag
) 

function destroy [2/2]

inline void details::Storage::destroy (
    err_tag
) 

function get [1/2]

template<typename U>
inline const U & details::Storage::get () const

function get [2/2]

template<typename U>
inline U & details::Storage::get () 

function rawConstruct

template<typename U>
inline void details::Storage::rawConstruct (
    U && val
) 


The documentation for this class was generated from the following file include/qqmusic/details/result.h