BloombergLP::bdlar::SequenceConstRef::accessAttribute

accessAttribute overloads

Synopses

Declared in <bdlar_sequenceref.h>

Invoke the specified accessor on the attribute with attributeId.

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

Invoke the specified accessor on the named attribute.

template<class t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    char const* attributeName,
    int attributeNameLength) const;
» more...

Return Value

non-zero if not found, otherwise value from accessor

Parameters

NameDescription
accessorcallable invoked on the attribute
attributeIdid of the attribute
attributeNamename of the attribute
attributeNameLengthlength of attributeName