[#BloombergLP-ball-BroadcastObserver-findObserver-031] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/BroadcastObserver.adoc[BroadcastObserver]::findObserver :relfileprefix: ../../../ :mrdocs: Return a shared pointer to the named observer. == Synopsis Declared in `<ball_broadcastobserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<Observer const>] findObserver(std::string_view const& observerName) const; ---- == 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 [cols="1,4"] |=== | Name| Description | *observerName* | name of the observer to find |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#