STD::IS_AGGREGATE(3cxx)

πŸ’– NAME πŸ’–

std::is_aggregate< _Tp > β€” okay so bestie, this is is_aggregate, and it's literally just here to tell you whether a type is an aggregate. That's it, that's the whole job. πŸ‘‘

(Also hi, you're reading the 3cxx girlies' page of the manual, the C++ one, we don't do ancient dusty C here πŸ’…)


✨ SYNOPSIS ✨

#include <type_traits>

Inherits std::integral_constant< bool, __v >. Yeah she's a nepo baby, she inherits everything from integral_constant and that's honestly iconic of her. 🫢

πŸŽ€ Public Types πŸŽ€

  • typedef integral_constant< bool, __v > type β€” the glow-up alias, this is what type actually is.
  • typedef bool value_type β€” and this is the value_type, it's a bool, we love a simple queen. ✨

🌸 Public Member Functions 🌸

  • constexpr operator value_type () const noexcept β€” converts herself into a value_type. constexpr, noexcept, zero drama, no exceptions thrown, no cap. 😌
  • constexpr value_type operator() () const noexcept β€” same energy but you call her like a function. Also constexpr, also noexcept. She's consistent, we stan. πŸ’œ

πŸ¦‹ Static Public Attributes πŸ¦‹

  • static constexpr bool value β€” the actual answer to your question bestie, it's a static constexpr bool and it's RIGHT THERE for you to just read. No need to instantiate anything. πŸ’«

πŸ“– Detailed Description πŸ“–

template<typename _Tp>
    struct std::is_aggregate< _Tp >

is_aggregate β€” true if the type is an aggregate. She looks at _Tp and tells you, fr fr, whether it's giving aggregate. 🌈

Since β€” C++17. So if you're on anything older, she doesn't exist yet and you're gonna get a compile error, sorry bestie. 😭

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code.

No human author to thank here, the robot did it, it's giving AI before AI was cool. πŸ’€ Iykyk.


Okay mwah, that's the whole page!! This one lives in the libstdc++ collection, filed under std::is_aggregate< _Tp > in section 3cxx of the manual. Go forth and check your aggregates, bestie. πŸ’…πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from