Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-12-12 11:20:15


David Abrahams <dave_at_[hidden]> writes:

> Phil Richards <news_at_[hidden]> writes:
>
>> On 2003-12-12, Aleksey Gurtovoy <agurtovoy_at_[hidden]> wrote:
>>> Phil Richards wrote:
>>
>>> All algorithms and in particular [the current version of] 'transform' are
>>> pretty well documented -
>>> http://www.boost.org/libs/mpl/doc/ref/Algorithms.html.
>>
>> Well, yes. It documents:
>>
>> template<typename Sequence, typename Op>
>> struct transform { ... };
>>
>> And Dave Abrahams ACCU slides use:
>>
>> template <class Sequence1, class Sequence2, class BinaryOp>
>> struct transform;
>
> This was something Aleksey told me would be in the library, or he got
> inspired as we were writing the example and decided he was going to
> add (I forget which). In fact, I'm pretty sure it's documented that
> way in the book... [checking] Yep, so it is.

OK, now it's fixed in the CVS.

You can now write transform<seq,unaryOp> or
transform<seq1,seq2,binaryOp>.

If you want to save a single template instantiation, you can write
transform1<seq,unaryOp> or transform2<seq1,seq2,binaryOp>

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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