$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2005-01-28 01:03:42
Daniel Frey <d.frey_at_[hidden]> writes:
> David Abrahams wrote:
>> Rob Stewart <stewart_at_[hidden]> writes:
>>
>>> swap() is typically as fast as or faster than copy assignment,
>> Not for many types that one might like to reset, such as pointers,
>> shared_ptr<T>, and integral types.
>
> What about exception safety guarantees of assignment vs. swap?
What about 'em? Speaking generally, both are basic guarantee
operations.
> Personally, I'd say these are more important to think about than
> speed...
I'm not sure what you're driving at.
-- Dave Abrahams Boost Consulting www.boost-consulting.com