C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise-2-4.hpp File Reference

Solution to Exercise 2-4. More...

#include <iostream>

Go to the source code of this file.

Classes

struct  exercise_2_4::type_descriptor< T >
 Print (a limited set of) data-types. More...
 

Namespaces

namespace  exercise_2_4
 Encapsulate solution for Exercise 2-4.
 

Functions

template<typename T >
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T const > const &)
 
template<typename T >
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T & > const &)
 
template<typename T >
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T * > const &)
 
template<typename T , size_t N>
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T[N]> const &)
 
template<typename T >
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T()> const &)
 
template<typename T >
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< T(*)()> const &)
 
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< char > const &)
 
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< short > const &)
 
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< int > const &)
 
std::ostream & exercise_2_4::operator<< (std::ostream &os, type_descriptor< long > const &)
 

Detailed Description

Solution to Exercise 2-4.

Author
Matt Bisson

Definition in file exercise-2-4.hpp.