Merge pull request #1455 from AThousandShips/localvector_has
[Core] Add `LocalVector::has` for conveniencepull/1461/head
commit
3d0d9cd0e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue