OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | List of all members
olb::meta::first_type_with_base< BASE, HEAD, TAIL > Struct Template Reference

Get first type based on BASE contained in a given type list. More...

#include <meta.h>

+ Collaboration diagram for olb::meta::first_type_with_base< BASE, HEAD, TAIL >:

Public Types

using type
 

Detailed Description

template<typename BASE, typename HEAD = void, typename... TAIL>
struct olb::meta::first_type_with_base< BASE, HEAD, TAIL >

Get first type based on BASE contained in a given type list.

If no such list item exists, type is void.

Definition at line 171 of file meta.h.

Member Typedef Documentation

◆ type

template<typename BASE , typename HEAD = void, typename... TAIL>
using olb::meta::first_type_with_base< BASE, HEAD, TAIL >::type
Initial value:
std::conditional_t<
std::is_base_of<BASE, HEAD>::value,
HEAD,
typename first_type_with_base<BASE, TAIL...>::type
>
std::conditional_t< std::is_base_of< BASE, HEAD >::value, HEAD, typename first_type_with_base< BASE, TAIL... >::type > type
Definition meta.h:172

Definition at line 172 of file meta.h.


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