|
Boost : |
Subject: Re: [boost] [Iterators] Iterators and higher-order programming
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2010-04-25 07:33:51
Thomas Jordan a écrit :
> Hi,
> One of the interesting things about the iterators library, it seems to me, is the additional support it gives for higher-order, functional-style programming. For example, you can use the transform and filter iterators to produce a simple 'Comprehension' object which permits list-comprehension type of syntax to be used, instead of conventional loops
You might want to look at the range library then, which has been
recently modified to add support for things like:
some_range | transformed(f) | filtered(p)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk