unique_ptr <T>,在講到smart pointer,現在比較新(C++ 14)的做法都是使用make_unique<T> () 這種function template來分配記憶體,如下面使用範例
確定! 回上一頁