C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Iterator for moving through Fibonacci series sequence. More...
#include <exercise-5-8.hpp>
Public Types | |
typedef boost::mpl::forward_iterator_tag | category |
Iterator for moving through Fibonacci series sequence.
This will hold all the data we need, really.
N | The current "value". |
LastN | Our previous value will be added to the current one to get next. |
Definition at line 59 of file exercise-5-8.hpp.
typedef boost::mpl::forward_iterator_tag exercise_5_8::fibonacci_series_iterator< N, LastN >::category |
Definition at line 61 of file exercise-5-8.hpp.