BloombergLP::bdlat_SequenceFunctions::bdlat_sequenceHasAttribute

bdlat_sequenceHasAttribute overloads

Synopses

Declared in <bdlat_sequencefunctions.h>

Default customization-point implementation of hasAttribute by id.

template<class TYPE>
bool
bdlat_sequenceHasAttribute(
    TYPE const& object,
    int attributeId);
» more...

Default customization-point implementation of hasAttribute by name.

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

Return Value

  • true if object has the attribute with attributeId, and false otherwise
  • true if object has the named attribute, and false otherwise

Parameters

NameDescription
objectsequence to query for the attribute
attributeIdid of the attribute to look up
attributeNamename of the attribute to look up
attributeNameLengthlength of attributeName