Skip to content

Instantly share code, notes, and snippets.

@danlark1
Created Apr 17, 2022
Embed
What would you like to do?
// The search going up is known to be guarded but the search coming down isn't.
// Prime the downward search with a guard.
// __m still guards upward moving __i
while (__comp(*__i, *__m))
++__i;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment