File include/brisk/core/Rc.hpp
¶
Rc
typedef¶
template <typename T> Rc = std::shared_ptr<T>
Alias for a shared pointer type using std::shared_ptr.
Template param T
The type of object managed by the shared pointer.
Rc = std::shared_ptr<T>
Alias for a shared pointer type using std::shared_ptr.
Template param T
The type of object managed by the shared pointer.
WeakRc
typedef¶
template <typename T> WeakRc = std::weak_ptr<T>
Alias for a weak pointer type using std::weak_ptr.
Template param T
The type of object managed by the weak pointer.
WeakRc = std::weak_ptr<T>
Alias for a weak pointer type using std::weak_ptr.
Template param T
The type of object managed by the weak pointer.
RcNew
class (Internal::RcNew
)¶
RcNew
Utility for creating a shared pointer (Rc) from a raw pointer.
The operator *
is overloaded to construct an Rc
object from a raw pointer.
Details This is used with the rcnew
macro to allocate objects
and automatically wrap them in an Rc
(std::shared_ptr).
rcNew
variable (Internal::rcNew
)¶
constexpr inline RcNew rcNew
Instance of RcNew used for creating reference-counted pointers.
Note (UNKNOWN ID: ('ref', 'RcNew'))
notManaged
function¶
template <typename T>
std::shared_ptr<T> notManaged(T *pointer)
Wraps a raw pointer in a shared pointer (Rc
) without taking ownership.
Template param T
The type of the object being pointed to.
Param pointer
A raw pointer to the object. The pointer is not managed or deleted.
Returns A shared pointer (Rc
) that does not manage the lifetime of the object.
Auto-generated from sources, Revision , https://github.com/brisklib/brisk/blob//include/brisk/