fix CCArrayExt::value_type

This commit is contained in:
matcool 2024-06-18 00:15:07 -03:00
parent 76e2ed47c6
commit 97d2e44611
2 changed files with 1 additions and 3 deletions
loader/include/Geode/utils

View file

@ -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**;

View file

@ -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) {