Create a std::unique_ptr owning a newly constructed object.

Synopsis

Declared in <absl/memory/memory.h>

using std::make_unique;

Description

Historical note: Abseil once provided a C++11 compatible implementation of the C++14's std::make_unique. Now that C++11 support has been sunsetted, absl::make_unique simply uses the STL‐provided implementation. New code should use std::make_unique.

Created with MrDocs