mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
mx::meta::trueFalseT< trueFalse > Struct Template Reference

template<bool trueFalse>
struct mx::meta::trueFalseT< trueFalse >

Template declaration of a trueFalseT type.

The specialized types can be used for tag dispatching, that is achieving SFINAE-like behavior but with function overloading when identical function signatures are desired. This works because trueFalseT<true> and trueFalseT<false> are dfferent types.

This is a slightly simpler construct than std::true_type and std::false_type, which are derived from std::integral_constant.

This template type is not defined, only the specializations are. The specializations have a typedef of True or False, accordingly, and a static const member value which evaluates to true or false accordingly.

Template Parameters
trueFalsebool to choose which of the specializations to invoke.

Definition at line 51 of file trueFalseT.hpp.


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