libcstl
|
Go to the source code of this file.
Functions | |
void | cstl_unique_ptr_alloc (cstl_unique_ptr_t *const up, const size_t sz, cstl_xtor_func_t *const clr, void *const priv) |
Dynamically allocate memory to be managed by the unique pointer. | |
void | cstl_unique_ptr_reset (cstl_unique_ptr_t *const up) |
Free the memory managed by a unique pointer. | |
void | cstl_shared_ptr_alloc (cstl_shared_ptr_t *const sp, const size_t sz, cstl_xtor_func_t *const clr) |
Dynamically allocated memory to be shared via the object. | |
bool | cstl_shared_ptr_unique (const cstl_shared_ptr_t *const sp) |
Determine if a shared pointer uniquely owns the underlying memory. | |
const void * | cstl_shared_ptr_get_const (const cstl_shared_ptr_t *const sp) |
Get a pointer to the memory managed by the object. | |
void | cstl_shared_ptr_share (const cstl_shared_ptr_t *const e, cstl_shared_ptr_t *const n) |
Create a new shared pointer object to manage the underlying memory. | |
void | cstl_shared_ptr_reset (cstl_shared_ptr_t *const sp) |
Stop managing the underlying memory via this object. | |
void | cstl_weak_ptr_from (cstl_weak_ptr_t *const wp, const cstl_shared_ptr_t *const sp) |
Create a weak pointer from a shared pointer. | |
void | cstl_weak_ptr_lock (const cstl_weak_ptr_t *const wp, cstl_shared_ptr_t *const sp) |
Convert a weak pointer to a shared pointer. | |
void | cstl_weak_ptr_reset (cstl_weak_ptr_t *const wp) |
Drop the reference to the underlying managed memory. | |