[#BloombergLP-ball-LoggerManager-findObserver-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/LoggerManager.adoc[LoggerManager]::findObserver
:relfileprefix: ../../../
:mrdocs:

`findObserver` overloads

== Synopses

Declared in `&lt;ball&lowbar;loggermanager&period;h&gt;`

Return a shared pointer to the named observer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Observer&gt;]
xref:BloombergLP/ball/LoggerManager/findObserver-04.adoc[findObserver](std::string&lowbar;view const& observerName);
----

[.small]#xref:BloombergLP/ball/LoggerManager/findObserver-04.adoc[_» more&period;&period;&period;_]#

Return a shared pointer to the named observer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Observer const&gt;]
xref:BloombergLP/ball/LoggerManager/findObserver-03.adoc[findObserver](std::string&lowbar;view const& observerName) const;
----

[.small]#xref:BloombergLP/ball/LoggerManager/findObserver-03.adoc[_» more&period;&period;&period;_]#

Load a typed shared pointer to the named observer into `result`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;OBSERVER&gt;
int
xref:BloombergLP/ball/LoggerManager/findObserver-0a.adoc[findObserver](
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;t&lowbar;OBSERVER&gt;]* result,
    std::string&lowbar;view const& observerName);
----

[.small]#xref:BloombergLP/ball/LoggerManager/findObserver-0a.adoc[_» more&period;&period;&period;_]#

Load a typed shared pointer to the named observer into `result`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;OBSERVER&gt;
int
xref:BloombergLP/ball/LoggerManager/findObserver-06.adoc[findObserver](
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;t&lowbar;OBSERVER const&gt;]* result,
    std::string&lowbar;view const& observerName) const;
----

[.small]#xref:BloombergLP/ball/LoggerManager/findObserver-06.adoc[_» more&period;&period;&period;_]#

== Return Value

* shared pointer to the named observer, or an empty shared pointer if none
* 0 if a non&hyphen;empty shared pointer was loaded, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *observerName*
| name of the observer to find
| *result*
| destination for the typed shared pointer to the observer
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
