Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

函数模板 make_unique_definit - Boost C++ 函数库
PrevUpHomeNext

函数模板 make_unique_definit

boost::movelib::make_unique_definit

提要

// In header: <boost/move/make_unique.hpp>


template<typename T> unique_ptr< T > make_unique_definit(std::size_t n);

描述

说明:除非 T 是未知边界的数组,否则此函数不参与重载解析。

返回值: unique_ptr<T>(new remove_extent_t<T>[n]) (默认初始化)


PrevUpHomeNext