Subject: Re: [boost] [Container] Provide more guarantees for flat_multimap
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-08-19 15:27:01
On August 19, 2014 7:39:44 AM EDT, Niall Douglas <s_sourceforge_at_[hidden]> wrote:
>On 19 Aug 2014 at 14:33, Gavin Lambert wrote:
>> >> After thinking way too hard for a bit, I'd reckon it stands for
>> >> "constant time". I would not have deciphered it without the "low
>> >> latency" and "no allocation" hints.
>> > It does.
>> > I like the idea of a noalloc_t tag, so insert(noalloc_t,
>> > node_ptr_type &&v). Thoughts?
>> Shouldn't tags traditionally be the final argument?
>Pre-C++11 I would agree. However availability of variadic args makes
>putting tags at the end harder than at the start. For me personally
>in my own code, I would prefer all tags to go at the front rather
>than some at the start and some at the end.
>Ok, I'm being lazy, but it saves productivity in having to write
>Args&&... filters just to put tags at the end.
I put non-const reference parameters (for "out" arguments) first because of defaults, so it's the same idea. Putting the tag first is a bit jarring at first, but I like your argument.
(Sent from my portable computation engine)
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk