BloombergLP::ball::BroadcastObserver::findObserver

Return a shared pointer to the named observer.

Synopsis

Declared in <ball_broadcastobserver.h>

bsl::shared_ptr<Observer>
findObserver(std::string_view const& observerName);

Description

Return a shared pointer to the observer having the specified observerName in the registry of this broadcast observer, and an empty shared pointer if there is no such observer otherwise.

Return Value

shared pointer to the named observer, or an empty shared pointer if none exists

Parameters

NameDescription
observerNamename of the observer to find