From d6e54de50239e8ac1de645bd411eeddbf627e4dc Mon Sep 17 00:00:00 2001 From: poke1024 Date: Thu, 2 Nov 2017 19:04:38 +0100 Subject: Add bsearch and bsearch_custom to Array --- core/array.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/array.h') diff --git a/core/array.h b/core/array.h index 2c2910310..3d70a31d2 100644 --- a/core/array.h +++ b/core/array.h @@ -70,6 +70,8 @@ public: Array &sort(); Array &sort_custom(Object *p_obj, const StringName &p_function); + int bsearch(const Variant &p_value, bool p_before = true); + int bsearch_custom(const Variant &p_value, Object *p_obj, const StringName &p_function, bool p_before = true); Array &invert(); int find(const Variant &p_value, int p_from = 0) const; -- cgit v1.2.3-70-g09d2