mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
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.
trueFalse | bool to choose which of the specializations to invoke. |
Definition at line 51 of file trueFalseT.hpp.