diff options
Diffstat (limited to 'src/array.hpp')
| -rw-r--r-- | src/array.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/array.hpp b/src/array.hpp index 4356e33..f8aa173 100644 --- a/src/array.hpp +++ b/src/array.hpp @@ -60,6 +60,7 @@ inline void PkeArray_Add(PkeArray_Base *arrIn, const D &val, MemBucket *bkt = nu memcpy(arr->data[arr->next++], val, sizeof(D)); } } + template<typename D, typename F = bool(const D&)> inline uint32_t PkeArray_FindFirstIndex(PkeArray_Base *arrIn, F fn) { auto *arr = static_cast<PkeArray<D> *>(arrIn); |
