Skip to content

AstAttributeMechanism::AstAttributeMechanism

Copy constructor.

Synopsis

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

Description

Copying an attribute container will copy the heap‐allocated attribute values by invoking each value's copy method. If the method returns null then the new attribute container will not have that attribute; i.e., the exists method returns false.

New semantics: The original behavior was that if the value's copy method returned null, the exists predicate returned true even though no value existed.

Parameters

Name

Description

other

The object to copy construct from

Created with MrDocs