Template Function Karana::Core::static_pointer_cast

Template Function Karana::Core::static_pointer_cast#

Function Documentation#

template<typename T, typename S>
std::shared_ptr<T> Karana::Core::static_pointer_cast(const std::shared_ptr<S> &source)#

Static pointer cast for ks_ptr. This version just uses the std::static_pointer_cast.

Template Parameters:
  • T – The type to cast to.

  • S – The type to cast from.

Parameters:

source – The pointer to cast from.

Returns:

The casted pointer of type T.