copy_through_shared_ptr
Declared in <folly/Memory.h>
template<typename T>
std::shared_ptr<T>
copy_through_shared_ptr(std::shared_ptr<T> const& t);
If the argument is nonnull, allocates a copy of its pointee.
a shared_ptr owning the copy, or null if t is null
| Name | Description |
|---|---|
| t | the shared_ptr whose pointee is copied |