News for hackers. Stuff that matters.
Re:How We Beat C++ STL Binary Search by CJefferson on Tuesday August 11, 2015 @05:52PM (#10044653)
operator+(int) is fine. The libstdc++ code is using std::advance, which will compile down to operator+ for random access iterators (and will be O(n) for forward iterators, but performance is already going to be awful). The vector issue requires care but is fixable (I'd probably test the total length, and branch to a more basic implementation for big ranges). The assigning -1 really is just unfixable.

There are no comments on this comment yet.