mirror of
https://github.com/geode-sdk/geode.git
synced 2025-07-29 15:40:06 -04:00
fix CCArrayExt::value_type
This commit is contained in:
parent
76e2ed47c6
commit
97d2e44611
2 changed files with 1 additions and 3 deletions
loader/include/Geode/utils
|
@ -1024,7 +1024,7 @@ namespace geode::cocos {
|
|||
using T = std::remove_pointer_t<Type>;
|
||||
|
||||
public:
|
||||
using value_type = T;
|
||||
using value_type = T*;
|
||||
using iterator = T**;
|
||||
using const_iterator = const T**;
|
||||
|
||||
|
|
|
@ -214,11 +214,9 @@ namespace geode::utils::ranges {
|
|||
}
|
||||
|
||||
template <class R, ValidConstContainer C, class Reducer>
|
||||
|
||||
requires requires(Reducer r, R& acc, typename C::value_type t) {
|
||||
r(acc, t);
|
||||
}
|
||||
|
||||
R reduce(C const& container, Reducer reducer) {
|
||||
auto res = R();
|
||||
for (auto& item : container) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue