BloombergLP::bdlat_SequenceFunctions::bdlat_sequenceAccessAttribute

Default customization-point implementation of accessAttribute by name.

Synopsis

Declared in <bdlat_sequencefunctions.h>

template<
    class TYPE,
    class ACCESSOR>
int
bdlat_sequenceAccessAttribute(
    TYPE const& object,
    ACCESSOR& accessor,
    char const* attributeName,
    int attributeNameLength);

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
attributeNamename of the attribute to access
attributeNameLengthlength of attributeName