12#include <boost/static_assert.hpp>
14#include <boost/mpl/advance.hpp>
15#include <boost/mpl/begin_end.hpp>
16#include <boost/mpl/deref.hpp>
17#include <boost/mpl/iterator_tags.hpp>
18#include <boost/mpl/next_prior.hpp>
58template <
size_t N,
size_t LastN>
61 typedef boost::mpl::forward_iterator_tag
category;
91template <
size_t N,
size_t LastN>
98template <
size_t N,
size_t LastN>
100 : boost::mpl::int_<N> { };
Exists to inject functionality into the Boost MPL namespace.
Exists to inject functionality into the Boost namespace.
Encapsulate solution for Exercise 5-8.
exercise_5_8::fibonacci_series_iterator< 0, 1 > type
exercise_5_8::fibonacci_series_iterator< N+LastN, N > type
Iterator for moving through Fibonacci series sequence.
boost::mpl::forward_iterator_tag category
A tag for tag-dispatched sequence metafunctions.
The Fibonacci series for use with Boost MPL sequences.