Matching Standard Library Containers Using Variadic Templates in C++ 2011

From my “Printing Standard Library Sequence and Associative Containers in C++ 2011” post, let’s discuss the second template: template < template < typename, typename, typename … > class C, typename T1, typename T2, typename … T_PACK > inline std::ostream & operator << ( std::ostream & o, C< T1, T2, T_PACK … > const & c ) {…

Read more