[Core] Add `LocalVector::has` for convenience

pull/1455/head
A Thousand Ships 2024-05-06 17:47:21 +02:00
parent 54fe2f9891
commit 505076c9a9
No known key found for this signature in database
GPG Key ID: 2033189A662F8BD7
1 changed files with 4 additions and 0 deletions

View File

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