STD::IS_BOUNDED_ARRAY(3cxx)
π std::is_bounded_array< _Tp > β the libstdc++ manual, but make it cute (3cxx) π
okay bestie, sit down, we're learning a type trait and it's honestly so good of it. this is the libstdc++ page for std::is_bounded_array< _Tp >, and it's giving β¨ type introspection β¨ in the most slay way possible.
πΈ NAME πΈ
std::is_bounded_array< _Tp > β true for a type that is an array of known bound. no cap, that's the whole personality. π
β¨ SYNOPSIS β¨
#include <type_traits>
Inherits std::integral_constant< bool, __v >.
like. it literally inherits from std::integral_constant< bool, __v >. iconic behavior. π
π Public Types
typedef integral_constant< bool, __v > typeβ yep, the base class comes back astype, as one does.typedef bool value_typeβ and the value type is justbool, plain and perfect, fr fr.
π¦ Public Member Functions
constexpr operator value_type () const noexceptβ turns the whole thing into avalue_typewhenever you need it, and it'sconstexprandnoexceptbecause obviously. πconstexpr value_type operator() () const noexceptβ call it like a function, get yourvalue_typeback. alsoconstexpr, alsonoexcept. it really said "I contain multitudes but I'm still cheap to call". π₯
π Static Public Attributes
static constexpr bool valueβ the moment we've all been waiting for: the actualvalue. it's static, it'sconstexpr, it's abool. main character energy, honestly. β
π Detailed Description
template<typename _Tp>
struct std::is_bounded_array< _Tp >
"True for a type that is an array of known bound."
that's it, that's the trait. you hand it a _Tp, it tells you whether that _Tp is an array with a known bound, i.e. it has a size you can literally point at. not vibes-based sizing. real, declared, known bound. π«Ά
Since: C++20 β so if you're out here on a pre-C++20 compiler, this trait is simply not in the group chat yet. π
π§ Author
Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this one, the machine did it and honestly? it ate. π
and that's the whole page, bestie! this was libstdc++'s std::is_bounded_array< _Tp >(3cxx), and we are OBSESSED. go check if your type has a known bound, you already know it's gonna be cute. ππΈπ
bye babes!! β¨
π¦ where this page comes from
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms