
28 May
2010
28 May
'10
6:16 p.m.
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