BloombergLP::bdlar::SequenceConstRef::accessAttributes

Invoke the specified accessor on each attribute until non-zero.

Synopsis

Declared in <bdlar_sequenceref.h>

template<class t_ACCESSOR>
int
accessAttributes(t_ACCESSOR& accessor) const;

Description

Invoke the specified accessor sequentially on each attribute, supplying accessor with the corresponding attribute information structure until such invocation returns a non-zero value. The supplied accessor must be a callable type that can be called as if it had the following signature: ` template <class t_INFO> int accessor(const ATTRIBUTE& refOrValue, const t_INFO& info); ` Return the value from the last invocation of accessor (i.e., the invocation that terminated the sequence).

Return Value

value from the last invocation of accessor

Parameters

NameDescription
accessorcallable invoked on each attribute