On August 19, 2014 7:39:44 AM EDT, Niall Douglas
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. ___ Rob (Sent from my portable computation engine)