mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
rsx: Fix simple_array<T>::map
This commit is contained in:
parent
1e5cd7f140
commit
8d6c957cbc
1 changed files with 3 additions and 1 deletions
|
@ -414,7 +414,9 @@ namespace rsx
|
||||||
requires std::is_invocable_v<F, const Ty&>
|
requires std::is_invocable_v<F, const Ty&>
|
||||||
simple_array<U> map(F&& xform) const
|
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)
|
for (auto it = begin(); it != end(); ++it)
|
||||||
{
|
{
|
||||||
result.push_back(xform(*it));
|
result.push_back(xform(*it));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue