C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Double the values in the first half of the given sequence. More...
#include <exercise-5-1.hpp>
Additional Inherited Members | |
![]() | |
typedef boost::mpl::eval_if< boost::is_same< boost::mpl::begin< S >::type, typenameboost::mpl::end< S >::type >, boost::mpl::vector_c< int >, double_first_half_impl< S, typenameboost::mpl::push_back< boost::mpl::vector_c< int >, typenamemultiply_or_not::type >::type, typenameboost::mpl::next< boost::mpl::begin< S >::type >::type > >::type | type |
Produce a result and keep iterating until we reach the end. | |
Double the values in the first half of the given sequence.
Takes a RandomAccessSequence
of integral constant wrappers of length N as an argument, and returns a copy with the first N/2 elements doubled in value.
S | The sequence to transform. |
Definition at line 124 of file exercise-5-1.hpp.