| 575 | // Helper to count the number of occurances of `T` in `List` |
| 576 | template <typename T, typename... List> |
| 577 | struct count : std::integral_constant<int, 0> {}; |
| 578 | template <typename T, typename... Args> |
| 579 | struct count<T, T, Args...> |
| 580 | : std::integral_constant<std::size_t, 1 + count<T, Args...>::value> {}; |