Quantcast
Channel: Cpp11 – On C++ and other OOPscenities
Viewing all articles
Browse latest Browse all 23

C++11: enable_if

$
0
0
std::enable_if is another feature taken from the Boost C++ library that now ships with every C++11 compliant compiler. As its name says, the template struct enable_if, enables a function only if a condition (passed as a type trait) is true; otherwise, the function is undefined. In this way, you can declare several “overloads” of a […]

Viewing all articles
Browse latest Browse all 23

Trending Articles