class Foo{};
class Demo
{
public:
std::unique_ptr<Foo> foo_ptr{new Foo()};;
};
What's the relationship between Foo and Demo? I think it is composition. Am I right? How to draw such the relationship between them?
For the occasion that the variable member is not the type of std::unique and alike, at the association's end which tell that the class at the opposite has an attribute named after the role,e.g:
.
Then for the type of std::unique<T>, how to add the attribute?

