Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Public Member Functions | Public Attributes | List of all members
serac::detail::variant_storage< T0, T1, std::enable_if_t< std::is_trivially_destructible_v< T0 > &&std::is_trivially_destructible_v< T1 > > > Struct Template Reference

#include <variant.hpp>

Collaboration diagram for serac::detail::variant_storage< T0, T1, std::enable_if_t< std::is_trivially_destructible_v< T0 > &&std::is_trivially_destructible_v< T1 > > >:
Collaboration graph
[legend]

Public Member Functions

constexpr variant_storage ()
 Default constructor Default initializes the first member of the variant.
 
constexpr void clear ()
 No-op clear as both member types are trivially destructible.
 

Public Attributes

int index_ = 0
 The index of the active member.
 
union serac::detail::variant_storage< T0, T1, std::enable_if_t< std::is_trivially_destructible_v< T0 > &&std::is_trivially_destructible_v< T1 > > >:: { ... }  
 
T0 t0_
 The storage for the first data type.
 
T1 t1_
 The storage for the second data type.
 

Detailed Description

template<typename T0, typename T1>
struct serac::detail::variant_storage< T0, T1, std::enable_if_t< std::is_trivially_destructible_v< T0 > &&std::is_trivially_destructible_v< T1 > > >

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 116 of file variant.hpp.


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