STD::TUPLE_SIZE(3cxx)

πŸ’– std::tuple_size< _Tp > β€” the 3cxx girlie πŸ’–

okay bestie, welcome to the <3cxx girlies club πŸŽ€ this one's a header-page situation, so let's get into it.


✨ NAME ✨

std::tuple_size< _Tp > β€” finds the size of a given tuple type. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

so like, this template is inherited by a whole little squad of cv-qualified versions, and yes they're all named like a nightmare but we love them:

  • std::tuple_size< const __enable_if_has_tuple_size< _Tp > >
  • std::tuple_size< const volatile __enable_if_has_tuple_size< _Tp > >
  • std::tuple_size< volatile __enable_if_has_tuple_size< _Tp > >

the way that const and volatile both get their own glow-up versions? iconic behavior, no cap. πŸ¦‹


🧚 Detailed Description 🧚

here's the actual shape of her, fr fr:

template<typename _Tp>
    struct std::tuple_size< _Tp >"Finds the size of a given tuple type.

finds the size of a given tuple type. ✨ that's the vibe. she looks at your tuple type and tells you how big it is. main character energy, lowkey doing the most with the least 🫢


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. so no, a human didn't hand-write this one β€” the machine did it, and honestly? she ate πŸ’€βœ¨


πŸ’œ reminder bestie: this page lives in the 3cxx manual, and everything above is exactly what it says β€” don't go inventing extra behavior, iykyk πŸ™ˆ

and that's a wrap on our girl πŸ’– big kisses to libstdc++ for birthing this page, mwah πŸŽ€πŸŒΈπŸ¦‹ periodt.