STD::IS_UNBOUNDED_ARRAY(3cxx)
π std::is_unbounded_array< _Tp > β from the 3cxx manual, bestie π
okay so picture this: you've got a type. is it an array? is it an array with no idea how long it is? bestie, this is the trait that answers that. no cap.
β¨ NAME β¨
std::is_unbounded_array< _Tp > β true for a type that is an array of unknown bound. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
#include <type_traits>
Inherits std::integral_constant< bool, __v >. it literally pulls up in the group chat wearing its parent's clothes, iconic behavior honestly π«Ά
π Public Types
typedef integral_constant< bool, __v > typeβ the parent vibe it's inheriting, wrapped up as a liltypeπtypedef bool value_typeβ yeah. it's abool. ground-breaking, i know π
π¦ Public Member Functions
constexpr operator value_type () const noexceptβ converts itself into avalue_typefor you, and it'sconstexprandnoexceptwhile doing it, so it's giving chill and allergic to drama β¨constexpr value_type operator() () const noexceptβ call it like a function, get yourvalue_typeback. alsoconstexpr, alsonoexcept. consistency queen π
β Static Public Attributes
static constexpr bool valueβ THE value. the one you're actually here for. static, constexpr, bool. periodt. π₯
π« Detailed Description π«
template<typename _Tp>
struct std::is_unbounded_array< _Tp >
"True for a type that is an array of unknown bound." no extra lore, no side quests, just facts fr fr π§
Since β C++20. so if you're out here on C++17 wondering why nothing compiles... yeah bestie, that's why π
lowkey reminder: "unknown bound" means the array is declared without a size, like int[] β not a sized array, not a pointer that wishes it were an array. this trait knows the difference and it will not be gaslit. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this one, it's the compiler-adjacent equivalent of a bot posting in the group chat and somehow still eating π
anyway that's the whole page, shoutout to libstdc++ and the 3cxx manual for hosting this absolute main character of a type trait β mwah, go check your bounds πβ¨π
π¦ 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