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

Duncan P. N. Exon Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 16:17:49 PST 2016


dexonsmith added a comment.

Ah, so the cost isn't necessarily the same.  I don't think this
is worth it then.  (Although, paradoxically, it opens up an avenue
for testing, via a custom allocator which counts </!= comparisons.)

Any other ideas for improving the failure mode?


http://reviews.llvm.org/D17053





More information about the cfe-commits mailing list