BloombergLP::bdlat_SequenceFunctions::hasAttribute

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

Synopsis

Declared in <bdlat_sequencefunctions.h>

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

Return Value

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

Parameters

NameDescription
objectsequence to query for the attribute
attributeIdid of the attribute to look up