Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
Static Public Attributes | List of all members
serac::detail::is_variant_assignable< T, T0, T1 > Struct Template Reference

Determines if T can be assigned to a variant<T0, T1> More...

#include <variant.hpp>

Static Public Attributes

constexpr static bool value
 If T can be assigned to the variant type. More...
 

Detailed Description

template<typename T, typename T0, typename T1>
struct serac::detail::is_variant_assignable< T, T0, T1 >

Determines if T can be assigned to a variant<T0, T1>

Template Parameters
TThe type on the right-hand side of the assignment
T0The first member type of the variant
T1The second member type of the variant

Definition at line 152 of file variant.hpp.

Member Data Documentation

◆ value

template<typename T , typename T0 , typename T1 >
constexpr static bool serac::detail::is_variant_assignable< T, T0, T1 >::value
staticconstexpr
Initial value:
= std::is_same_v<std::decay_t<T>, T0> || std::is_assignable_v<T0, T> ||
std::is_same_v<std::decay_t<T>, T1> || std::is_assignable_v<T1, T>

If T can be assigned to the variant type.

Definition at line 156 of file variant.hpp.


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