Typedef otyca::ObjectGetter

Typedef Documentation

template<typename T, typename O>
using otyca::ObjectGetter = std::function<T(const std::shared_ptr<O>)>

Alias for a function that retrieves an object of type T from a shared pointer of type O.

This alias defines a function signature for a callable that takes a shared pointer to an object of type O and returns an object of type T.

Template Parameters:
  • T – The type of the object to be returned.

  • O – The type of the object pointed to by the shared pointer.