System::SmartPtr::get_shared_count method

SmartPtr::get_shared_count method

Gets number of shared pointers existing to referenced object, including current one. Asserts current pointer being in shared mode.

int System::SmartPtr<T>::get_shared_count() const

ReturnValue

Number of shared pointers existing to referenced object, if any. If pointer is null, returns 0.

See Also