-
Notifications
You must be signed in to change notification settings - Fork 2
valueList::size
Igor Zarzycki edited this page Jan 23, 2022
·
2 revisions
Defined in "crap/utility.d/valuelist.h".
Defined in "crap/utility".
template <class Type, Values...> struct valueList
{
/*...*/
constexpr const static std :: size_t size = sizeof...(Values);
/*...*/
};
Member constant of valueList
. Stores numer of elements present in collection.
#include <crap/utility.d/valuelist.h>
#include <iostream>
int main()
{
using test = crap :: valueList<unsigned int, 0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u>;
std :: cout << test :: size << std :: endl;
return 0;
}
8