plll  1.0
plll::helper::IntToType< val > Struct Template Reference

Conversion from compile-time known ints to types. More...

#include <helper.hpp>

Detailed Description

template<int val>
struct plll::helper::IntToType< val >

Conversion from compile-time known ints to types.

Provides a unique type for every int by writing IntToType<specific_integer>. This is used in template metaprogramming to realize compile time selections.

Template Parameters
valThe "value" of this type.

This was taken from "Modern C++ Design" by Andrei Alexandrescu. Note that in C++11, std::integral_constant<> provides the same functionality.

Definition at line 201 of file helper.hpp.


The documentation for this struct was generated from the following file: