Invoke the specified accessor on the attribute with attributeId.

Synopsis

Declared in <bdlar_sequenceref.h>

template<class t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    int attributeId) const;

Description

Invoke the specified accessor on the (non‐modifiable) attribute of the referred sequence object with the given attributeId, supplying accessor with the corresponding attribute information structure. 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 non‐zero if the attribute is not found, and the value returned from the invocation of accessor otherwise.

Return Value

non‐zero if not found, otherwise value from accessor

Parameters

Name

Description

accessor

callable invoked on the attribute

attributeId

id of the attribute

Created with MrDocs