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 lil type πŸ’œ
  • typedef bool value_type β€” yeah. it's a bool. ground-breaking, i know 🌈

πŸ¦‹ Public Member Functions

  • constexpr operator value_type () const noexcept β€” converts itself into a value_type for you, and it's constexpr and noexcept while doing it, so it's giving chill and allergic to drama ✨
  • constexpr value_type operator() () const noexcept β€” call it like a function, get your value_type back. also constexpr, also noexcept. 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