ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Re: Re: Mini-review request: aligned_storage.hpp
by Peter Dimov other posts by this author
Aug 9 2002 4:34PM messages near this date
RE: [boost] Re: Re: Mini-review request: aligned_storage.hpp | Re: [boost] Re: Re: Mini-review request: aligned_storage.hpp
From: "Douglas Gregor" <gregod@[...].edu> 
> 
>  We now have three distinct allocation strategies with different exception
&
>  performance characteristics:
> 
>    1) Stack allocation. May become empty if an exception is thrown during
>  assignment/swap (basic guarantee). Takes minimal stack space & will be
most
>  efficient otherwise.
> 
>    2) Your strategy. Strong guarantee (no ugly "empty" state). Still
>  stack-allocated, but takes twice the minimum space. As efficient as (1)
> 
>    3) Heap allocation. Strong guarantee, but uses heap allocation (less
>  efficient than the other two because of new/delete calls).

Nothrow guarantee for swap, if I'm not mistaken.

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Anthony Williams
Peter Dimov
Douglas Gregor

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved