Boost logo

Boost :

Subject: [boost] ** Please don't overquote **
From: David Abrahams (dave_at_[hidden])
Date: 2010-05-28 14:16:35


At Fri, 28 May 2010 19:16:41 +0200,
vicente.botet wrote:

<snip entire foregoing message>

> > swap_in_place<>(r) where r is a range (or swap_in_place<>(begin,end), which is
> > provided for convenience) will be zero cost if no work needs to be done, while
> > having the same complexity as the above (but only!) if swapping is required.
> > With the swap_in_place<>() approach, you only pay for what you need (to borrow
> > from the C++ mantra)
>
> This is not completly true, as your implementation will at least visit the instance.
…

http://www.boost.org/community/policy.html#effective

Thank you.

-- 
Dave Abrahams
Boost Moderator

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