mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-02 04:36:57 -06: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&>
|
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…
Reference in New Issue
Block a user