實戰c++中的智能指針unique_ptr系列--經過unique_ptr對shared_ptr進行初始化

首先須要明確的是,這篇文章不是要描述unique_ptr和shared_ptr兩個只能指針之間的區別,主要就是爲了用unique_ptr對shared_ptr進行初始化。ios #include <iostream> #include <memory> int main() { std::cout << "start!\n"; auto customArrayAllocator
相關文章
相關標籤/搜索