STD::TUPLE_ELEMENT(3cxx)
π std::tuple_element< __i, _Tp > π
okay bestie, so this one lives in the cxx manual, section 3cxx, and it's a page all about std::tuple_element< __i, _Tp > from libstdc++ πΈ
β¨ NAME β¨
std::tuple_element< __i, _Tp > β gives you the type of the ith element of a given tuple type π
like, literally. you hand it a tuple type and a number, it hands you back the type sitting at that spot. that's the whole gig. iconic behavior, no notes π
β¨ SYNOPSIS β¨
Detailed Description
template<size_t __i, typename _Tp>
struct std::tuple_element< __i, _Tp >
and what does it do, you ask? bestie it gives the type of the ith element of a given tuple type. periodt π
that's it. that's the whole vibe. __i is the index you're reaching for (a size_t, so don't you dare try anything silly), and _Tp is the tuple type you're peeking inside of. the struct then lowkey tells you what type lives at position __i. slay π¦
ngl it's giving "template metaprogramming but make it cute" β the answer comes back as a type, not a value, so you use it in typename contexts and such, iykyk β¨
π Author π
generated automatically by Doxygen for libstdc++ from the source code π
like, nobody hand-wrote this one bestie, the robot did it. and honestly? it ate. π
so yeah, that's the whole page β short and sweet, main character energy, zero filler π the footer was giving libstdc++ with the page name and section 3cxx stamped at the bottom, and it's all pulled straight from the libstdc++ docs π«Ά mwah, bye bestie πβ¨
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu resolute: libstdc++-14-doc 14.3.0-14ubuntu1
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- ubuntu stonking: libstdc++-14-doc 14.4.0-2ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms