summaryrefslogtreecommitdiff
path: root/src/array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/array.hpp')
-rw-r--r--src/array.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/array.hpp b/src/array.hpp
index f8aa173..7db2252 100644
--- a/src/array.hpp
+++ b/src/array.hpp
@@ -61,11 +61,11 @@ inline void PkeArray_Add(PkeArray_Base *arrIn, const D &val, MemBucket *bkt = nu
}
}
-template<typename D, typename F = bool(const D&)>
-inline uint32_t PkeArray_FindFirstIndex(PkeArray_Base *arrIn, F fn) {
+template<typename D, typename D2, typename F = bool(const D&, const D2&)>
+inline int64_t PkeArray_FindFirstIndex(PkeArray_Base *arrIn, F fn, const D2 &d2) {
auto *arr = static_cast<PkeArray<D> *>(arrIn);
- for (uint32_t i = 0; i < arr->next; ++i) {
- if (fn(arr->data[i])) {
+ for (int64_t i = 0; i < arr->next; ++i) {
+ if (fn(arr->data[i], d2)) {
return i;
}
}