nstd_shared_ptr_allocator

Function nstd_shared_ptr_allocator 

Source
#[unsafe(no_mangle)]
pub const extern "C" fn nstd_shared_ptr_allocator<'a>( shared_ptr: &NSTDSharedPtr<'a>, ) -> &'a NSTDAllocator
Available 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.