You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SergeyKopienko
changed the title
Type of parameter in constructor __transform_functor
Type of parameter in constructor of __transform_functorFeb 27, 2025
SergeyKopienko
changed the title
Type of parameter in constructor of __transform_functor
Type of parameter in constructor of class __transform_functorFeb 27, 2025
Not quite understood why the constructor
class __transform_functor
is implemented not for r-value type of parameter :oneDPL/include/oneapi/dpl/pstl/utils.h
Line 271 in 4497b15
In all use cases we move parameter into it:
https://github.com/search?q=repo%3Auxlfoundation%2FoneDPL+%3A%3A__transform_functor&type=code
So I mean may be better to implement it like we did for
__transform_if_unary_functor
:oneDPL/include/oneapi/dpl/pstl/utils.h
Line 305 in 4497b15
Example - https://godbolt.org/z/aKG4qdhjr, case 4 and 8
UPD: last modification has been made in the PR #1233, but I think not till the end.
The text was updated successfully, but these errors were encountered: