TRIQS/TRIQS 4.0.0
Researching Interacting Quantum Systems
Loading...
Searching...
No Matches
triqs::count_type_occurrence< T, A >

Detailed Description

template<typename T, typename... A>
struct triqs::count_type_occurrence< T, A >

Number of types in a parameter pack that derive from (or are equal to) a given type.

It uses std::is_base_of to determine whether a type derives from T.

Useful when restricting variadic template overloads to a maximum number of arguments of a certain category.

Warning
This is unused. It might be removed in the future.
Template Parameters
TBase type to look for.
AParameter pack of candidate types.

Definition at line 48 of file count_type_occurrence.hpp.


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