Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-06-22 21:18:04


Niels Dekker - mail address until 2008-12-31 wrote:
>>> Would it be okay to you if we would add support for array types to
>>> the Boost.Swap utility that is located in the sandbox?
>
> David Abrahams wrote:
>> Whether or not this is a good idea depends on whether you think swap
>> is fundamentally an O(1) and/or nonthrowing operation.
>
> The array support I would like to add to boost::swap is non-throwing, as
> long as the array element type has a non-throwing swap.

Sure, but it is not O(1) no matter what the element type does.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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