C++98 definition of enable_if. More...
Go to the source code of this file.
Classes | |
| struct | CxxUtils::enable_if< bool, _Tp > |
Define a member typedef type only if a boolean constant is true. More... | |
| struct | CxxUtils::enable_if< true, _Tp > |
Namespaces | |
| namespace | CxxUtils |
Copy the elements of a sequence for which a predicate is true. | |
C++98 definition of enable_if.
CxxUtils::enable_if that can be used in both c++98 and c++11; the standard library version is used if it's available.For the c++98 case, we can't just import enable_if from boost, since std::enable_if actually corresponds to boost::enable_if_c. The definition of enable_if is simple enough that we just copy it here.
1.6.1