Contenido principal

Cpp.AbstractReferenceDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the abstract_reference_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class AbstractReferenceDeclarator represents the node abstract_reference_declarator in the syntax tree of your code.

// Rvalue reference abstract declarator
int &&;

// Lvalue reference abstract declarator
int &;

// Nested (syntactically odd) reference
int &&&;

The examples declare C++ reference types; each && or & in these declarations corresponds to an abstract_reference_declarator node that the AbstractReferenceDeclarator class models.

Predicates

expand all

Version History

Introduced in R2026a