|
C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
The default implementation adds a const& to the template type.
More...
#include <exercise-2-0.hpp>
Public Types | |
| typedef T const & | type |
The default implementation adds a const& to the template type.
Specializations are all partial, and specialize based on the IsRef parameter.
If IsRef is true, this simply returns the template parameter, unmodified.
| T | The datatype to alter. |
| IsRef | A boolean value that should be true if T is already a reference type. |
Definition at line 58 of file exercise-2-0.hpp.
| typedef T const& exercise_2_0::no_boost::add_const_ref_impl< T, IsRef >::type |
Definition at line 60 of file exercise-2-0.hpp.