Boost logo

Boost :

Subject: Re: [boost] Assign V2 - first impression
From: Stewart, Robert (Robert.Stewart_at_[hidden])
Date: 2011-06-24 14:17:59

er wrote:
> On 6/24/11 9:08 AM, Stewart, Robert wrote:
> > er wrote:
> >>
> >> "Create data elements by mapping 1, 10, 100, 1000 by
> >> function f, and insert each result in cont by invoking
> >> modifier push_front."
> >
> > If I interpret that correctly, it would be clearer as:
> >
> > "Create elements in cont, using push_front(), by calling f()
> 1, 10, 100, and 1000 times."
> Apologies, I misread this. It should be :
> Map 1, 10, 100, and 1000 by function f,
> which yields f( 1 ), f( 10 ), f( 100 ), f( 1000 )
> and insert each, n times, using push_front, in cont.

I see now. The "map" terminology obscures things somewhat. I prefer to see mention of "insert," "cont," and "push_back" near the beginning as the purpose of the operation is to insert elements into the container using push_back().

IOW, something more like the following would suit me better:

   Insert elements in cont, using push_front(), where the
   values are generated by calling f() n times with 1, 10,
   100, and 1000, in turn.

It might even be useful to expand that with the following:

   That is, call cont.push_front(f(1)) n times, then
   cont.push_front(f(10)) n times, and so on.

Rob Stewart robert.stewart_at_[hidden]
Software Engineer using std::disclaimer;
Dev Tools & Components
Susquehanna International Group, LLP

IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments. Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited. Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument. Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.

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