C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_5_7::begin_impl_traversal< S, S_Prev > Struct Template Reference

begin_impl_traversal walks the list to find the beginning More...

#include <exercise-5-7.hpp>

Detailed Description

template<typename S, typename S_Prev>
struct exercise_5_7::begin_impl_traversal< S, S_Prev >

begin_impl_traversal walks the list to find the beginning

This is where the real sequence construction occurs. Declaring the sequence does no work, but finding the beginning realizes the entire sequence by invoking S::prev until we find the "beginning" (i.e., boost::mpl::void_).

Template Parameters
SThe sequence (in reality, just the back).
S_PrevThe part of the sequence immediately preceeding S.

Definition at line 110 of file exercise-5-7.hpp.


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