Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-07-17 12:32:12


on Tue Jul 17 2007, "Peng Yu" <pengyu.ut-AT-gmail.com> wrote:

> I know _2 and _1 are placeholders. But I'm not very clear how they are
> used here. I tried to read the manual for "fold", but its explanation
> refers to many other mpl structs.
>
> Could you give me some easy explanation on how this works?

Sorry, not much time today. I suggest that you read the book ;-)
<http://www.boost-consulting.com/mplbook>

Maybe this much will help: fold<...> is also known as
accumulate<...>. See your friendly STL manual.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com

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