Dune Core Modules (2.3.1)

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

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

#include <dune/common/typetraits.hh>

Public Types

typedef T1 Type DUNE_DEPRECATED_MSG("Use Dune::conditional::type instead")
 The selected type. More...
 

Detailed Description

template<bool first, class T1, class T2>
struct Dune::SelectType< 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.

Deprecated:
Will be removed after dune-common-2.3, use 'conditional' instead.

Member Typedef Documentation

◆ DUNE_DEPRECATED_MSG

template<bool first, class T1 , class T2 >
typedef T1 Type Dune::SelectType< first, T1, T2 >::DUNE_DEPRECATED_MSG("Use Dune::conditional::type instead")

The selected type.

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


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)