I'm reading the documentation on std::integral_constant
, and apparently it includes using type
that refers to itself.
template <typename T, T Value>struct integral_constant{ using type = integral_constant<T, Value>; // ...};
What is this typedef used for?
To access it you already need to know the type, so I don't see what benefit it brings.