Take ownership from a convertible unique_ptr and retain the object.
Synopsis
Declared in <llvm/ADT/IntrusiveRefCntPtr.h>
template<
class X,
bool = true>
requires std::is_convertible<X *, T *>::value
IntrusiveRefCntPtr(std::unique_ptr<X> S);
Parameters
Name |
Description |
S |
Unique pointer whose ownership is released into this smart pointer. |
Created with MrDocs