C++ Aggregate - CPP Aggregate

Return to CPP Topics

Aggregates are arrays and class types. A class type is a class, a struct, or a union.

With C++20, the following condition must hold for a class type being an aggregate.

No private or protected non-static data members

No user-declared or inherited constructors

No virtual, private, or protected base classes

No virtual member functions


Cloud Monk is Retired ( for now). Buddha with you. © 2025 and Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.