C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_2_0::add_const_ref< T > Struct Template Reference

A unary metafunction that returns T if it is a reference type, and otherwise returns T const&. More...

#include <exercise-2-0.hpp>

Inheritance diagram for exercise_2_0::add_const_ref< T >:
exercise_2_0::no_boost::add_const_ref< T > exercise_2_0::no_boost::add_const_ref_impl< T, false >

Additional Inherited Members

- Public Types inherited from exercise_2_0::no_boost::add_const_ref_impl< T, false >
typedef T const & type
 

Detailed Description

template<typename T>
struct exercise_2_0::add_const_ref< T >

A unary metafunction that returns T if it is a reference type, and otherwise returns T const&.

Template Parameters
TThe type to check and modify.

Definition at line 120 of file exercise-2-0.hpp.


The documentation for this struct was generated from the following file: