plll
1.0
|
Conversion from compile-time known bools to types. More...
#include <helper.hpp>
Conversion from compile-time known bools to types.
Provides a unique type for true
and false
writing IntToType<true>
respectively IntToType<false>
. This is used in template metaprogramming to realize compile time if
clauses.
val | The "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 220 of file helper.hpp.