Merge pull request #1455 from AThousandShips/localvector_has

[Core] Add `LocalVector::has` for convenience
pull/1461/head
David Snopek 2024-05-07 12:55:59 -05:00 committed by GitHub
commit 3d0d9cd0e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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;