Dune Core Modules (2.3.1)

Dune::conditional< first, T1, T2 > Struct Template Reference

Select a type based on a condition. More...

#include <dune/common/typetraits.hh>

Public Types

typedef T1 type
 The selected type. More...
 

Detailed Description

template<bool first, class T1, class T2>
struct Dune::conditional< first, T1, T2 >

Select a type based on a condition.

If template parameter first is true T1 is selected otherwise T2 will be selected. The selected type is accessible through the typedef type.

Note
If available, this uses C++11 std::conditional, otherwise it provides a reimplementation.

Member Typedef Documentation

◆ type

template<bool first, class T1 , class T2 >
typedef T1 Dune::conditional< first, T1, T2 >::type

The selected type.

if first is true this will be type T1 and T2 otherwise


The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.80.0 (May 2, 22:35, 2024)