#include <iostream>
#include <utility>
using namespace std;
template <typename T, T... Ints>
struct integer_sequence_size;
template <typename T, T Head, T... Tail>
struct integer_sequence_size<T, Head, Tail...> {
static constexpr size_t value
= 1 + integer_sequence_size<T, Tail...>::value;
};
template <typename T> struct integer_sequence_size<T> {
static constexpr size_t value = 0;
};
int main()
{
using my_sequence
= integer_sequence<int, 0, 1, 2, 3, 4>;
std::cout
<< "Size: "
<< integer_sequence_size<int, 0, 1, 2, 3, 4>::value
<< endl;
return 0;
}