|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-11-21 14:52:12
"Jonathan Turkanis" <technews_at_[hidden]> writes:
> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:u1xen6t8a.fsf_at_boost-consulting.com...
>> "Jonathan Turkanis" <technews_at_[hidden]> writes:
>>
>> > Hi Aleksey,
>> >
>> > The new MPL document is very nice!
>> >
>> > I believe the synopsis for replace_if
>> > (http://www.boost.org/libs/mpl/doc/refmanual/replace-if.html) is missing the
>> > third template parameter. Is that correct?
>>
>> ?? I see three template parameters there.
>
> Me to ;-) But the section labeled "Parameters" shows four parameters, with the
> inserter being the fourth, and so does the source code.
Ah, thanks.
> Under the synopsis there's a note "this wording applies to a no-inserter
> version(s) of the algorithm. See the Expression semantics subsection for a
> precise specification." I'm not sure what this note means, since the third
> parameter is labeled "In" for "Inserter".
The inserter parameter is optional.
> Maybe the third parameter in the
> synopsis should be labeled "NewType."
probably.
> Or is it a dual-purpose "NewTypeOrInserter"?
No, you always have to supply NewType.
-- Dave Abrahams Boost Consulting http://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