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
There is a C++ standardization proposal P2769 to add a function object template that works similar to std::get function template but also can be used in contexts where std::get cannot, and specifically as an argument to function calls. With good chances the proposal might be accepted for C++26.
Seemingly it might make sense to add such functionality to oneDPL, adjusting it as needed to work with [at most] C++17. The part of the proposal that deals with defining a tuple-like concept can be mostly ignored, but the applicability of get_element to more than just the standard tuple-like types remains valuable.
If you are interested in the idea, consider preparing and submitting an RFC.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a C++ standardization proposal P2769 to add a function object template that works similar to
std::get
function template but also can be used in contexts wherestd::get
cannot, and specifically as an argument to function calls. With good chances the proposal might be accepted for C++26.Seemingly it might make sense to add such functionality to oneDPL, adjusting it as needed to work with [at most] C++17. The part of the proposal that deals with defining a tuple-like concept can be mostly ignored, but the applicability of
get_element
to more than just the standard tuple-like types remains valuable.If you are interested in the idea, consider preparing and submitting an RFC.
Beta Was this translation helpful? Give feedback.
All reactions