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

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

#include <helper.hpp>

Detailed Description

template<bool val>
struct plll::helper::BoolToType< val >

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.

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 220 of file helper.hpp.


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