[Core] Add LocalVector::has for convenience

This commit is contained in:
A Thousand Ships
2024-05-06 17:47:21 +02:00
parent 54fe2f9891
commit 505076c9a9

View File

@@ -257,6 +257,10 @@ public:
return -1;
}
bool has(const T &p_val) const {
return find(p_val) != -1;
}
template <typename C>
void sort_custom() {
U len = count;