Replies: 1 comment
-
A related RFC proposal for defining a tuple-like concept in oneDPL; #2150. Since the C++ standard does not explicitly allow specializations (overloads) of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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