SPH
Public Member Functions | Public Attributes | List of all members
VariantHelpers::CopyMoveCreate< TArgs > Struct Template Reference

Creates a variant by copying/moving value currently stored in other variant. More...

#include <Variant.h>

Public Member Functions

template<typename T , typename TOther >
void visit (const TOther &other)
 
template<typename T , typename TOther , typename = std::enable_if_t<!std::is_lvalue_reference<TOther>::value>>
void visit (TOther &&other)
 

Public Attributes

AlignedUnion< TArgs... > & storage
 

Detailed Description

template<typename... TArgs>
struct VariantHelpers::CopyMoveCreate< TArgs >

Creates a variant by copying/moving value currently stored in other variant.

Definition at line 82 of file Variant.h.

Member Function Documentation

◆ visit() [1/2]

template<typename... TArgs>
template<typename T , typename TOther >
void VariantHelpers::CopyMoveCreate< TArgs >::visit ( const TOther &  other)
inline

Definition at line 86 of file Variant.h.

◆ visit() [2/2]

template<typename... TArgs>
template<typename T , typename TOther , typename = std::enable_if_t<!std::is_lvalue_reference<TOther>::value>>
void VariantHelpers::CopyMoveCreate< TArgs >::visit ( TOther &&  other)
inline

Definition at line 93 of file Variant.h.

Member Data Documentation

◆ storage

template<typename... TArgs>
AlignedUnion<TArgs...>& VariantHelpers::CopyMoveCreate< TArgs >::storage

Definition at line 83 of file Variant.h.


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