https://www.cnblogs.com/WindSun/p/11444429.html
C++标准库中又两种智能指针分别为:shared_ptr和unique_ptr
shared_ptr和unique_ptr之间最大的区别就是:shared_ptr允许共享指针,而unique_ptr则独占指针。
还有一个差异就是两种指针的删除器的差异。对于shared_ptr来说,删除器是可以重载的,所以其类型是在运行时绑定。而unique_ptr的删除器不能重载,且是unique_ptr类的一部分,在其编译时绑定。
https://blog.csdn.net/xiaoderose/article/details/71360906