BloombergLP::bdlat_SequenceFunctions::accessAttribute

accessAttribute overloads

Synopses

Declared in <bdlat_sequencefunctions.h>

Invoke an accessor on a sequence attribute identified by id.

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

Invoke an accessor on a sequence attribute identified by name.

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

Return Value

non-zero if the attribute is not found, and the value from accessor otherwise

Parameters

NameDescription
objectsequence whose attribute is accessed
accessorcallable invoked with the attribute and its info
attributeIdid of the attribute to access
attributeNamename of the attribute to access
attributeNameLengthlength of attributeName