Boost logo

Boost :

Subject: Re: [boost] [yield_iterator] new iterator lib with C# yield return/yield break
From: Sylvain Bougerel (sylvain.bougerel.devel_at_[hidden])
Date: 2011-06-20 22:12:48


On Jun 21, 2011 2:15 AM, "Oliver Kowalke" <oliver.kowalke_at_[hidden]> wrote:
> For instance iterating an tree would usally require to traverse the
complete tree and store the nodes in a STL container - the begin/end
iterators of this STL container are used to iterate the tree.
>

I'm under the impression that we generally iterate through trees by pointing
the iterator to the node of the tree, instead of storing everything into a
stack.

I would probably have to do this if the tree was an object shared across
several threads. Is this meant for this type of usage?

Cheers,
Sylvain


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk