Contenido principal

Cpp.OperatorName Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the operator_name nodes in the syntax tree of your code

Since R2026a

Description

The PQL class OperatorName represents the node operator_name in the syntax tree of your code.

struct S {
  S operator+(const S&) const;
  S operator-(const S&) const;
  bool operator==(const S&) const;
};

The above C++ struct declares three overloaded operators. Each operator declaration contains an operator_name node that corresponds to the PQL OperatorName class.

Predicates

expand all

Version History

Introduced in R2026a