BloombergLP::bdlat_SequenceFunctions::bdlat_sequenceAccessAttribute

bdlat_sequenceAccessAttribute overloads

Synopses

Declared in <bdlat_sequencefunctions.h>

Default customization-point implementation of accessAttribute by id.

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

Default customization-point implementation of accessAttribute by name.

template<
    class TYPE,
    class ACCESSOR>
int
bdlat_sequenceAccessAttribute(
    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