C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_3_4 Namespace Reference

Encapsulate solution for Exercise 3-4. More...

Typedefs

typedef twice< boost::add_pointer< _1 >, twice< boost::add_pointer< _1 >, int >::type >::type double_twice
 Call twice on itself to add four pointers to a type.
 

Functions

 BOOST_STATIC_ASSERT ((boost::mpl::equal< double_twice, int **** >::type::value))
 

Detailed Description

Encapsulate solution for Exercise 3-4.

Typedef Documentation

◆ double_twice

typedef twice<boost::add_pointer<_1>,twice<boost::add_pointer<_1>,int>::type>::type exercise_3_4::double_twice

Call twice on itself to add four pointers to a type.

Definition at line 42 of file exercise-3-4.hpp.

Function Documentation

◆ BOOST_STATIC_ASSERT()

exercise_3_4::BOOST_STATIC_ASSERT ( (boost::mpl::equal< double_twice, int **** >::type::value)  )