C/C++
cpptt.txt
Associated article: C++ Type Traits
Tags: C/C++
Published source code accompanying the article by John Maddock and Steve Cleary in which they examine how generic programming does not have to sink to the lowest common denominator. Therein lie the value of type traits.
C++ Type Traits
by John Maddock and Steve Cleary
Listing One
template <typename T>
struct is_void
{ static const bool value = false; };
template <>
struct is_void<void>
{ static const bool value = true; };
Listing Two
...


