to_erased_unique_ptr
Synopses
Declared in <folly/Memory.h>
to_erased_unique_ptr
template<typename T>
erased_unique_ptr
to_erased_unique_ptr(std::unique_ptr<T> ptr) noexcept;
to_erased_unique_ptr
template<typename T>
erased_unique_ptr
to_erased_unique_ptr(T const* ptr) noexcept;
Return Value
-
An erased_unique_ptr taking ownership from
ptr. -
An erased_unique_ptr taking ownership of
ptr.
Parameters
Name |
Description |
ptr |
The unique_ptr to convert. |
Created with MrDocs