Contenido principal

Cpp.ReferenceDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the reference_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class ReferenceDeclarator represents the node reference_declarator in the syntax tree of your code.

int &x;
void foo(int &&... args) {}
struct S { int &field : 3; };

The snippet contains three forms of reference_declarator:

  • Reference — &x

  • Rvalue reference — &&...args

  • Reference to a bitfield — &field : 3

Predicates

expand all

Version History

Introduced in R2026a