rsx: Fix simple_array<T>::map

This commit is contained in:
kd-11 2024-06-12 03:10:28 +03:00 committed by kd-11
parent 1e5cd7f140
commit 8d6c957cbc

View File

@ -414,7 +414,9 @@ namespace rsx
requires std::is_invocable_v<F, const Ty&>
simple_array<U> map(F&& xform) const
{
simple_array<U> result(size());
simple_array<U> result;
result.reserve(size());
for (auto it = begin(); it != end(); ++it)
{
result.push_back(xform(*it));