Skip to content

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/