Junior — Senior
Creating your own std::shared_ptr analog
livecode
Task condition
It is required to implement a custom smart pointer similar to std::shared_ptr, with a focus on efficiency. The following members need to be implemented:
- default constructor
- constructor accepting a raw pointer
- copy constructor
- copy assignment operator
- move constructor
- move assignment operator
- destructor