Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::count_type< T, Types > Struct Template Reference

Count how many times a type appears in a variadic list of types.

#include <type_traits.hpp>

Static Public Attributes

static constexpr size_t value = (0 + ... + (std::is_same_v<T, Types> ? 1 : 0))

Member Data Documentation

◆ value

template<class T, class... Types>
size_t mundy::count_type< T, Types >::value = (0 + ... + (std::is_same_v<T, Types> ? 1 : 0))
staticconstexpr