Visit each registered observer with the specified visitor.

Synopsis

Declared in <ball_loggermanager.h>

template<class t_OBSERVER_VISITOR>
void
visitObservers(t_OBSERVER_VISITOR&& visitor);

Description

Invoke the specified visitor functor of (template parameter) t_OBSERVER_VISITOR type on each element in the registry of this logger manager, supplying that functor modifiable access to each observer. visitor must be a functor that can be called as if it had the following signature: ` void operator()(const bsl::shared_ptr<Observer>& observer, const bsl::string_view& observerName); `

Created with MrDocs