Having a discussion with my lead pertaining to a code review and I was trying to explain my point of view, when I used the term "aggregate."
Evidently, we think that term is defined different ways.
I Googled it up, and all I can really find is: https://en.wikipedia.org/wiki/Object_composition#Aggregation
but that does not define what the aggregate is.
In the following code, which class is the aggregate and what would you call the other?
class A { }; class B { std::vector<A> m_data; }; I thought A is the "aggregate" He thinks B is the "aggregate"
I don't want to go through life misusing terms!
std::is_aggregate: en.cppreference.com/w/cpp/types/is_aggregate