valueListForType - HaxyM/crap GitHub Wiki

crap :: valueListForType

Defined in "crap/utility.d/valuelistfortype.h".
Defined in "crap/utility".


template <class Type> struct valueListForType;

Creates valueList in for simple to be passed as template argument.

Template parameters

  • Type - type of values to be stored in collection.

Layout

Member types

Usage example

#include <crap/utility.d/printer.h>
#include <crap/utility.d/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;
}

Possible output

0, 1, 2, 3, 4, 5, 6, 7,

See also

⚠️ **GitHub.com Fallback** ⚠️