findObserver overloads
Synopses
Declared in <ball_broadcastobserver.h>
Return a shared pointer to the named observer.
bsl::shared_ptr<Observer>
findObserver(std::string_view const& observerName);
Return a shared pointer to the named observer.
bsl::shared_ptr<Observer const>
findObserver(std::string_view const& observerName) const;
Load a typed shared pointer to the named observer into result.
template<class t_OBSERVER>
int
findObserver(
bsl::shared_ptr<t_OBSERVER>* result,
std::string_view const& observerName)
requires bsl::is_convertible<t_OBSERVER *, ball::Observer *>::value;
Load a typed shared pointer to the named observer into result.
template<class t_OBSERVER>
int
findObserver(
bsl::shared_ptr<t_OBSERVER const>* result,
std::string_view const& observerName) const
requires bsl::is_convertible<const t_OBSERVER *,
const ball::Observer *>::value;
Return Value
-
shared pointer to the named observer, or an empty shared pointer if none exists
-
0 if a non‐empty shared pointer was loaded, and a non‐zero value otherwise
Parameters
Name |
Description |
observerName |
name of the observer to find |
result |
destination for the typed shared pointer to the observer |
Created with MrDocs