Function nstd_sys::shared_ptr::nstd_shared_ptr_allocator
source · #[no_mangle]
pub extern "C" fn nstd_shared_ptr_allocator<'a>(
shared_ptr: &NSTDSharedPtr<'a>
) -> &'a NSTDAllocatorAvailable on crate feature
shared_ptr only.Expand description
Returns an immutable reference to a shared object’s allocator.
Parameters:
const NSTDSharedPtr *shared_ptr- The shared object.
Returns
const NSTDAllocator *allocator - The shared object’s allocator.