GetObjectNotNull()

SmartPtr::GetObjectNotNull() const method

Gets currently referenced object (if any) or throws.

T * System::SmartPtr<T>::GetObjectNotNull() const

Return Value

Raw pointer to referenced object.

Exceptions

ExceptionDescription
System::NullReferenceExceptionThrown if called on null-pointer.

See Also