I just want to confirm if this is a good way;

In the below example, there is no need to pass smart pointer to Test class, as there is no need for Test object to manage any record. There can be...