Boost logo

Boost :

Subject: Re: [boost] [Containers] How about a list with O(1) splice?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-10-07 16:44:52


El 06/10/2011 19:15, Dave Abrahams escribió:
>
> on Thu Oct 06 2011, Ion Gaztañaga<igaztanaga-AT-gmail.com> wrote:
>
>> //!<b>Throws</b>: std::runtime_error if this' allocator and x's allocator
>> //! are not equal.
>
> Are you sure you want to make this defined behavior?

I was just reproducing existing practice of some implementations (*),
but I agree that we could just require it as a precondition and use assert.

(*) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1599.html


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