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 constexpr unsigned int | value |
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
-
- Returns
- value, the number of times T appears in U.
- Author
- Thomas Helfer
- Date
- 30/08/2006
◆ value
template<typename T, typename U>
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: