Skip to content

AstAttributeMechanism::size

Number of attributes stored.

Synopsis

Declared in <src/midend/astProcessing/AstAttributeMechanism.h>

size_t
size() const;

Description

Returns the number of attributes stored in this container.

New semantics: The old implementation returned a signed integer instead of size_t as is customary for size measurements. It also could not be invoked on a const container. It also could return a value larger larger than the number of stored attributes (such as when a previous query for a non‐existing attribute occurred).

Created with MrDocs