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 whattypeactually is.typedef bool value_typeβ and this is thevalue_type, it's abool, we love a simple queen. β¨
πΈ Public Member Functions πΈ
constexpr operator value_type () const noexceptβ converts herself into avalue_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. Alsoconstexpr, alsonoexcept. She's consistent, we stan. π
π¦ Static Public Attributes π¦
static constexpr bool valueβ the actual answer to your question bestie, it's astatic constexpr booland 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
- 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