Commit 4175c247 authored by POTTIER Francois's avatar POTTIER Francois

Pointer to the blog post on iterators.

parent f9f35acd
......@@ -1347,6 +1347,15 @@ The implementation of these functions is simple: it is just
a matter of overriding \tyconvisitor{'expr} so as to deconstruct
one kind of expression and reconstruct the other kind.
% ------------------------------------------------------------------------------
\subsection{From visitors to iterators}
\label{sec:iterators}
It is possible to use a visitor to implement an iterator, that is, an object
that traverses a container data structure and produces its elements on demand.
The story is told in a blog post~\cite{iterators}.
% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment