주요 콘텐츠

Cpp.DeleteExpression Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the delete_expression nodes in the syntax tree of your code

Since R2026a

Description

The PQL class DeleteExpression represents the node delete_expression in the syntax tree of your code.

// example demonstrating delete_expression nodes
#include <iostream>

void f() {
    int *p = new int(42);
    delete p;           // delete_expression (non-array)
    int *a = new int[10];
    delete[] a;         // delete_expression (array form)
}

The two delete statements correspond to delete_expression nodes; the single-object form (delete p) and array form (delete[] a) are both matched by DeleteExpression.

Predicates

expand all

Version History

Introduced in R2026a