BloombergLP::ball::AttributeCollectorRegistry::addCollector

Add the specified collector with the specified name to this registry.

Synopsis

Declared in <ball_attributecollectorregistry.h>

int
addCollector(
    Collector const& collector,
    std::string_view const& name);

Description

Return 0 if collector was successfully registered, and a non-zero value (with no effect) otherwise. Note that this method will fail if a collector having name is already registered.

Return Value

0 on success, or a non-zero value otherwise

Parameters

NameDescription
collectorattribute collector functor to register
namename under which to register collector