SPH
Public Member Functions | Public Attributes | List of all members
VariantHelpers::CopyMoveAssign< 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::CopyMoveAssign< TArgs >

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

Definition at line 112 of file Variant.h.

Member Function Documentation

◆ visit() [1/2]

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

Definition at line 116 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::CopyMoveAssign< TArgs >::visit ( TOther &&  other)
inline

Definition at line 123 of file Variant.h.

Member Data Documentation

◆ storage

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

Definition at line 113 of file Variant.h.


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