On 5/27/16 10:41 AM, Chris wrote:
The improved `std find` comes very close to the manual function above now, sometimes it's even faster or at least as fast.
What you want to do here for indexed access is to match the last element first. If no match, continue etc. If there's a match, enter an inner loop where you don't need to check for the end of the haystack. -- Andrei
