copy_through_unique_ptr
Synopsis
Declared in <folly/Memory.h>
template<typename T>
std::unique_ptr<T>
copy_through_unique_ptr(std::unique_ptr<T> const& t);
Description
If the argument is nonnull, allocates a copy of its pointee.
Return Value
a unique_ptr owning the copy, or null if t is null
Parameters
Name |
Description |
t |
the unique_ptr whose pointee is copied |
Created with MrDocs