Template Function Karana::Core::discard

Template Function Karana::Core::discard#

Function Documentation#

template<typename T>
void Karana::Core::discard(ks_ptr<T> &obj)#

This function will cast the incoming type to Base and call _discard. Just call discard(derived_class_ptr) to discard an object.

Parameters:

obj – - A pointer to the derived object to discard.