搜索内容

包含标签:unique-ptr 的文章
  • std::make_unique 和 unique_ptr

    如果我没看错,cppreference说以下两个构造对于 C++14 及更高版本中的非数组类型应该是等效的: make_unique<T>(T()); unique_ptr<T>(new T()); ……
    田田 问答 2022年8月14日