
23 Jun
2008
23 Jun
'08
1:18 a.m.
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