Boost logo

Boost :

Subject: Re: [boost] [Container] Provide more guarantees for flat_multimap
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2014-08-17 03:47:52

El 16/08/2014 17:39, Niall Douglas escribió:
> On 15 Aug 2014 at 21:38, Ion Gaztañaga wrote:
>>>> In which sense they have become enhanced?
>>> I stress the following is still in flux, but it's getting close to
>>> final. The following changes were mostly agreed with Howard and
>>> Jonathan, and none of the other authors of N3645 objected:
>> I think we should implement the minimal functions in order to improve
>> the proposal and add it to the standard when possible. Even in the
>> original proposal, "node_ptr extract(const key_type& x);" seems redundant.
> Why?

Isn't just a slightly modified "extract(find(k))"? The only difference
that extract(it) is undefined when passing the end node. I don't know if
having the extra check is important or the programmer should check
find() != end() before using extract()



Boost list run by bdawes at, gregod at, cpdaniel at, john at