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 as type, as one does.
  • typedef bool value_type β€” and the value type is just bool, plain and perfect, fr fr.

πŸ¦‹ Public Member Functions

  • constexpr operator value_type () const noexcept β€” turns the whole thing into a value_type whenever you need it, and it's constexpr and noexcept because obviously. 😌
  • constexpr value_type operator() () const noexcept β€” call it like a function, get your value_type back. also constexpr, also noexcept. 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 actual value. it's static, it's constexpr, it's a bool. 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