OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | List of all members
olb::meta::list_item_with_base_default_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::list_item_with_base_default_base< BASE, HEAD, TAIL >:

Public Types

using type
 

Detailed Description

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

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

If no such list item exists, type is BASE.

Definition at line 145 of file meta.h.

Member Typedef Documentation

◆ type

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

Definition at line 146 of file meta.h.


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