Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function template make_unique_for_overwrite

boost::movelib::make_unique_for_overwrite

Synopsis

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


template<typename T> unique_ptr< T > make_unique_for_overwrite();

Description

Remarks: This function shall not participate in overload resolution unless T is not an array.

Returns: unique_ptr<T>(new T) (default initialization). Same as make_unique_definit<T>() and C++20's std::make_unique_for_overwrite<T>().


PrevUpHomeNext