dune-common  2.2.1
Public Types | List of all members
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
 The selected type.

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 id accessible through the typedef Type.

Member Typedef Documentation

template<bool first, class T1, class T2 >
typedef T1 Dune::SelectType< first, T1, T2 >::Type

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: