주요 콘텐츠

Cpp.InitializerList Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the initializer_list nodes in the syntax tree of your code

Since R2026a

Description

The PQL class Cpp.InitializerList represents the node initializer_list in the syntax tree of your code.

int arr[] = {1, 2, 3};
struct S { int x; int y; };
S s = { .x = 1, .y = 2 };
int mat[2][2] = { {1, 2}, {3, 4} };

The three brace-enclosed expressions in the code are initializer_list nodes and correspond to Cpp.InitializerList in PQL.

Predicates

expand all

Version History

Introduced in R2026a