BloombergLP::bdlat_SequenceFunctions::hasAttribute

hasAttribute overloads

Synopses

Declared in <bdlat_sequencefunctions.h>

Return true if the specified object has an attribute with the specified attributeId, and false otherwise.

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

Return true if the specified object has an attribute with the specified attributeName of the specified attributeNameLength, and false otherwise.

template<class TYPE>
bool
hasAttribute(
    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