mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
rsx: Fix simple_array<T>::map
This commit is contained in:
parent
1e5cd7f140
commit
8d6c957cbc
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user