News for hackers. Stuff that matters.
Re:Clang is now feature complete for C++14 by berkut on Thursday November 07, 2013 @09:33AM (#6689482)
Most STL implementations have always done this. This is one reason why it's better to use the empty() check for an empty container instead of size() == 0 for all container types.

Also, linked lists are notoriously crap for cache coherency / processor pre-fetching and branch prediction by processors anyway, given that there's no guarantee where each node will be allocated - the only way to do that is pull them off a slab allocator or something, in which case you might as well use a vector or deque anyway...

Re:Clang is now feature complete for C++14 by cmircea on Thursday November 07, 2013 @03:50PM (#6692285)
Sure, but blowing the cache just to count is nuts.