Inline the lower_bound and upper_bound callbacks in sorted_vector_map
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 12 Jul 2016 01:27:49 +0000 (18:27 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Tue, 12 Jul 2016 01:38:54 +0000 (18:38 -0700)
commit594f18f7ba21543612b02b97c3abdff7dd40aa3a
tree13c4775445a9ced779fa25a223280bd3448c7e36
parentc8f4d603e448cdd2749f2850ef70952932962fa1
Inline the lower_bound and upper_bound callbacks in sorted_vector_map

Summary:
[Folly] Inline the `lower_bound` and `upper_bound` callbacks in `sorted_vector_map`.

Avoids unnecessary use of legacy `boost::bind`, and allows the compiler to avoid the indirection it introduces. This way, we use templates instead of vtables.

Reviewed By: Orvid

Differential Revision: D3545939

fbshipit-source-id: 277e9e4862beb71e99b94a62308783771071d2bc
folly/sorted_vector_types.h