Relationship | Description |
---|---|
Dependency | uses a |
Generalization | is a |
Association | has a |
Aggregation (Association) | has a |
Composition (Association) | has a |
std::reference_wrapper
)nullptr
, so have to check before usestd::unique_ptr<>
, but allows multiple clientsReferences | |
Pointers | |
Smart Pointers |
Club
controls the lifetime of the object being referenced, e.g., emptyPolicy
and fullPolicy
Club
controls the lifetime of policy
Club
destructor is called, the std::unique_ptr<>
handles the delete
of the allocated memory from the objects