주요 콘텐츠

Cpp.AlignofExpression Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the alignof_expression nodes in the syntax tree of your code

Since R2026a

Description

The PQL class AlignofExpression represents the node alignof_expression in the syntax tree of your code.

// minimal example showing alignof expressions
#include <cstddef>
int a = alignof(int);
int b = alignof(double);
int c = alignof(a);
int main() { return a + b + c; }

The three alignof(...) usages in the C++ demo correspond to alignof_expression nodes; PQL AlignofExpression predicates operate on those nodes.

Predicates

expand all

Version History

Introduced in R2026a