Add bsearch and bsearch_custom to Array

This commit is contained in:
poke1024 2017-11-02 19:04:38 +01:00 committed by Bernhard Liebl
parent 7c90d51b72
commit d6e54de502
7 changed files with 110 additions and 0 deletions

View file

@ -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;