-
Notifications
You must be signed in to change notification settings - Fork 2
valueListForType::type
Igor Zarzycki edited this page Jan 23, 2022
·
5 revisions
Defined in "crap/utility.d/valuelistfortype.h".
Defined in "crap/utility".
template <class Type> struct valueListForType
{
/*...*/
template <Type ... Values> using type = valueList<Type, Values...>;
/*...*/
};
Container (see value contaner) creating valueList
(see valueList) collection storing values passed as Values...
.
-
Values...
- values of typeType
(see valueListForType) to be passed tovalueList
(see valueList) being created.
#include <crap/utility.d/valuelistfortype.h>
#include <crap/utility.d/printer.h>
#include <iotsream>
int main()
{
using test = crap :: valueListForType <unsigned int> :: template type<0u, 1u, 2u, 3u, 4u, 5u, 6u, 7u>;
crap :: printer :: print(std :: cout, ", ", test{});
return 0;
}
0, 1, 2, 3, 4, 5, 6, 7,