Возрастное ограничение 12+

Lightning Talk: Can't we Just Synthesize std::tuple_element From Get? - Jonathan Müller

Описание

#cpp #cppcon

Lightning Talk: Can't we Just Synthesize std::tuple_element From Get? - Jonathan Müller - CppCon 2024
---
`get⋖N⋗(obj)` returns the Nth element of your tuple-like type, `std::tuple_element⋖N, decltype(obj)⋗::type` the Nth type. If you want structured bindings support, you need to specialize both. But surely, `std::tuple_element` is just `decltype` of `get`, no?

---
Jonathan Müller is a Software Engineer at think-cell. There, he is responsible for maintaining think-cell's core libraries, which include a custom range library, a fast and convenient JSON parser, and many other utilities and data structures to write elegant C++ code. Before working at think-cell, he wrote many useful open-source C++ libraries. He is also a member of the C++ standardization committee, where he serves as the assistant chair for std::ranges, and a frequent conference speaker.

https://www.youtube.com/watch?v=10_kPNL4sjk

Автор

CppVault
CppVault