Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-05-02 16:05:09


"Eric Niebler" <eric_at_[hidden]> writes:

> Stefan Strasser wrote:
>> Eric Niebler schrieb:
>>
>>> Even when writing loops by hand, it's a good idea to save the
>>> result of .end() in a local to avoid repeated function calls that
>>> are not necessary. It's called "hoisting". It's one of the
>>> side-benefits of using FOREACH and std:: algorithms.
>>>
>>>
>> I think it's not worth it here.
>> besides that it isn't a performance overhead on most containers you
>> don't expect that from a keyword.
>
>
> Huh, *I* would expect that from a keyword.

Me too. Furthermore, I wouldn't use this library unless it did
hoisting.

-- 
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