`const std::shared_ptr<...>&` is preferred.