-
Notifications
You must be signed in to change notification settings - Fork 2
valueListForType
Igor Zarzycki edited this page Sep 9, 2019
·
3 revisions
Defined in "utility/valuelistfortype.h"
template <class Type> struct valueListForType;
Creates valueList
in for simple to be passed as template argument.
-
Type
- type of values to be stored in collection.
-
type
- value container accepting values of typeType
. CreatesvalueList
containing passed values (for details see valueListForType :: type).
#include "utility/printer.h"
#include "utility/valuelistfortype.h"
#include <iostream>
int main()
{
using test = typename 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,