We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb6e6b commit d1dcd5fCopy full SHA for d1dcd5f
include/godot_cpp/templates/vector.hpp
@@ -122,12 +122,12 @@ class Vector {
122
sorter.sort(data, len);
123
}
124
125
- Size bsearch(const T &p_value, bool p_before) {
+ Size bsearch(const T &p_value, bool p_before) const {
126
return bsearch_custom<_DefaultComparator<T>>(p_value, p_before);
127
128
129
template <typename Comparator, typename Value, typename... Args>
130
- Size bsearch_custom(const Value &p_value, bool p_before, Args &&...args) {
+ Size bsearch_custom(const Value &p_value, bool p_before, Args &&...args) const {
131
SearchArray<T, Comparator> search{ args... };
132
return search.bisect(ptrw(), size(), p_value, p_before);
133
0 commit comments