Boost logo

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
>> "Jonathan Turkanis" <technews_at_[hidden]> writes:
>> > Hi Aleksey,
>> >
>> > The new MPL document is very nice!
>> >
>> > I believe the synopsis for replace_if
>> > ( 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."


> Or is it a dual-purpose "NewTypeOrInserter"?

No, you always have to supply NewType.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at