Boost logo

Boost :

Subject: Re: [boost] [Container] Provide more guarantees for flat_multimap
From: Bjorn Reese (breese_at_[hidden])
Date: 2014-08-20 12:27:44


On 08/19/2014 01:39 PM, Niall Douglas wrote:
> On 19 Aug 2014 at 14:33, Gavin Lambert wrote:

>>> 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.
>
> Unless you know of a better way?

Specifying the policy as the first argument seems rather natural
given that we go from method_policy(...) to method(policy_t, ...).


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