OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
olb::meta::id< TYPE > Struct Template Reference

Identity type to pass non-constructible types as value. More...

#include <meta.h>

+ Collaboration diagram for olb::meta::id< TYPE >:

Public Types

using type = TYPE
 

Public Member Functions

 operator std::type_index () const
 
TYPE get () const
 

Detailed Description

template<typename TYPE>
struct olb::meta::id< TYPE >

Identity type to pass non-constructible types as value.

Aid for using fields in generic lambdas

Definition at line 79 of file meta.h.

Member Typedef Documentation

◆ type

template<typename TYPE >
using olb::meta::id< TYPE >::type = TYPE

Definition at line 80 of file meta.h.

Member Function Documentation

◆ get()

template<typename TYPE >
TYPE olb::meta::id< TYPE >::get ( ) const
inline

Definition at line 86 of file meta.h.

86 {
87 return TYPE{};
88 }

◆ operator std::type_index()

template<typename TYPE >
olb::meta::id< TYPE >::operator std::type_index ( ) const
inline

Definition at line 82 of file meta.h.

82 {
83 return typeid(TYPE);
84 }

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