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

Synopsis

Declared in <bdlat_sequencefunctions.h>

template<class TYPE>
bool
hasAttribute(
    TYPE const& object,
    char const* attributeName,
    int attributeNameLength);

Return Value

true if object has the named attribute, and false otherwise

Parameters

Name

Description

object

sequence to query for the attribute

attributeName

name of the attribute to look up

attributeNameLength

length of attributeName

Created with MrDocs