Constructors

Synopses

Declared in <llvm/ADT/IntrusiveRefCntPtr.h>

Construct an empty pointer that does not retain any object.

explicit
IntrusiveRefCntPtr() = default;

Copy and retain the pointee from S.

Take ownership of S's pointee without retaining.

Construct from a raw pointer and retain it if non‐null.

Take ownership of a convertible IntrusiveRefCntPtr S without retaining.

template<
    class X,
    bool = true>
requires std::is_convertible<X *, T *>::value
IntrusiveRefCntPtr(IntrusiveRefCntPtr<X> S);

Take ownership from a convertible unique_ptr and retain the object.

template<
    class X,
    bool = true>
requires std::is_convertible<X *, T *>::value
IntrusiveRefCntPtr(std::unique_ptr<X> S);

Parameters

Name

Description

S

Source smart pointer to copy from.

obj

Object to retain, or null.

Created with MrDocs