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;

Invoke the specified accessor on the named attribute.

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

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

attributeName

name of the attribute

attributeNameLength

length of attributeName

Created with MrDocs