C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_5_8::fibonacci_series_iterator< N, LastN > Struct Template Reference

Iterator for moving through Fibonacci series sequence. More...

#include <exercise-5-8.hpp>

Public Types

typedef boost::mpl::forward_iterator_tag category
 

Detailed Description

template<size_t N, size_t LastN>
struct exercise_5_8::fibonacci_series_iterator< N, LastN >

Iterator for moving through Fibonacci series sequence.

This will hold all the data we need, really.

Template Parameters
NThe current "value".
LastNOur previous value will be added to the current one to get next.

Definition at line 59 of file exercise-5-8.hpp.

Member Typedef Documentation

◆ category

template<size_t N, size_t LastN>
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.


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