Skip to content

Instantly share code, notes, and snippets.

@danlark1
Created April 17, 2022 12:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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