Skip to content

implement bsearch

Jeremy Soller requested to merge jrraymond:bsearch into master

Created by: jrraymond

Two things to consider:

  1. changed the signature of the comparator function to be unsafe (it has to dereference a raw pointer)
  2. provided a default implementation of the comparator, perhaps bsearch should assert instead?

Merge request reports