tfel
Loading...
Searching...
No Matches
tfel::meta::TLCountNbrOfT< T, U > Class Template Reference

A metafunction which counts the number of times T appears in a TL. More...

#include </home/runner/work/tfel/tfel/include/TFEL/Metaprogramming/TypeList.hxx>

Static Public Attributes

static constexpr unsigned int value

Detailed Description

template<typename T, typename U>
class tfel::meta::TLCountNbrOfT< T, U >

A metafunction which counts the number of times T appears in a TL.

Parameters
T,atype.
U,aTL.
Returns
value, the number of times T appears in U.
Author
Thomas Helfer
Date
30/08/2006

Member Data Documentation

◆ value

template<typename T, typename U>
unsigned int tfel::meta::TLCountNbrOfT< T, U >::value
staticconstexpr
Initial value:
=
(std::is_same_v<T, typename U::Current> ? 1 : 0) +
TLCountNbrOfT<T, typename U::Next>::value

The documentation for this class was generated from the following files: