[PATCH] D17053: [libcxx]: vector: Use < instead of != to improve failure mode

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 16:14:31 PST 2016


mclow.lists added a comment.

> Since `__new_last` and `__end_` are raw pointers, < should be the same cost as !=.


`pointer` is an alias for `allocator_traits<_Alloc>::pointer`, which might not be a raw pointer.


http://reviews.llvm.org/D17053





More information about the cfe-commits mailing list