SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::equations::TestOperandTraits< T, typename > Struct Template Reference

A helper struct to extract the test operand type from a contribution or equation. This is used to determine the test type of an equation or contribution. More...

#include <contributions.hpp>

Public Types

using type = discretization::forms::Operand<typename T::Test>
 The default test operand type is the operand of the test type of the contribution or equation.
 

Detailed Description

template<typename T, typename = void>
struct serif::equations::TestOperandTraits< T, typename >

A helper struct to extract the test operand type from a contribution or equation. This is used to determine the test type of an equation or contribution.

Note
The default void template parameter helps us to use SFINAE to detect if the type has a TestOperand member type.
Todo
Can we replace SFINAE here with requires or concepts?
Template Parameters
TThe type to extract the test operand from

Member Typedef Documentation

◆ type

template<typename T, typename = void>
using serif::equations::TestOperandTraits< T, typename >::type = discretization::forms::Operand<typename T::Test>

The default test operand type is the operand of the test type of the contribution or equation.


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