Dune Core Modules (2.6.0)
Dune::MetaType< T > Struct Template Reference
A type that refers to another type. More...
#include <dune/common/typelist.hh>
Public Types | |
using | type = T |
The referred-to type. | |
Detailed Description
template<class T>
struct Dune::MetaType< T >
struct Dune::MetaType< T >
A type that refers to another type.
The referred-to type can be accessed using the contained typedef type
or, if you have a MetaType
object by using the dereferencing operator.
MetaType<T> is an empty literal class. Objects of type MetaType<T>
can still be used even if T
is incomplete or non-constructible. They can even be used if T
is complete but non-instatiable (e.g. std::tuple<void>
), although you need to be extra careful to avoid attempts to instantiate the template parameter T
due to argument-dependent lookup (ADL).
Objects of type MetaType
are passed to the generic lambda when iterating over a TypeList
using Hybrid::forEach()
.
The documentation for this struct was generated from the following file:
- dune/common/typelist.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 24, 23:30, 2024)