August 2017
Intermediate to advanced
438 pages
14h 19m
English
Let's see how to implement a type trait:
#include <vector> #include <boost/type_traits/integral_constant.hpp> template <class T> struct is_stdvector: boost::false_type {}; template <class T, class Allocator> struct is_stdvector<std::vector<T, Allocator> >: boost::true_type {};
Read now
Unlock full access