GetAttrNum

Description

Obtains the number of attributes.

Prototype

size_t GetAttrNum() const

Parameters

None

Returns

Number of attributes

Restrictions

None

Example

const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs();
size_t attr_num = runtime_attrs->GetAttrNum();