Pack indexing looks awesome, until now we had to do with TMP tricks to get the n-th element of a parameter pack (see this talk by Kris Jusiak: https://www.youtube.com/watch?v=LfOh0DwTP00 ). This could make the compilation of code heavily using std::tuple
a bit faster (if the STL devs rewrite it to exploit that feature when C++26 is available instead of emulating it).
this post was submitted on 08 Dec 2023
9 points (100.0% liked)
C++
1778 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS