|
@@ -39,14 +39,11 @@
|
|
|
*/
|
|
|
|
|
|
#include "core/error/error_macros.h"
|
|
|
-#include "core/os/memory.h"
|
|
|
#include "core/templates/cowdata.h"
|
|
|
#include "core/templates/search_array.h"
|
|
|
#include "core/templates/sort_array.h"
|
|
|
|
|
|
-#include <climits>
|
|
|
#include <initializer_list>
|
|
|
-#include <utility>
|
|
|
|
|
|
template <typename T>
|
|
|
class VectorWriteProxy {
|
|
@@ -131,7 +128,7 @@ public:
|
|
|
_FORCE_INLINE_ bool has(const T &p_val) const { return find(p_val) != -1; }
|
|
|
|
|
|
void sort() {
|
|
|
- sort_custom<_DefaultComparator<T>>();
|
|
|
+ sort_custom<Comparator<T>>();
|
|
|
}
|
|
|
|
|
|
template <typename Comparator, bool Validate = SORT_ARRAY_VALIDATE_ENABLED, typename... Args>
|
|
@@ -147,7 +144,7 @@ public:
|
|
|
}
|
|
|
|
|
|
Size bsearch(const T &p_value, bool p_before) {
|
|
|
- return bsearch_custom<_DefaultComparator<T>>(p_value, p_before);
|
|
|
+ return bsearch_custom<Comparator<T>>(p_value, p_before);
|
|
|
}
|
|
|
|
|
|
template <typename Comparator, typename Value, typename... Args>
|