주요 콘텐츠

Cpp.StructuredBindingDeclarator Class

Namespace: Cpp
Superclasses: AstNodeProperties

Represents the structured_binding_declarator nodes in the syntax tree of your code

Since R2026a

Description

The PQL class StructuredBindingDeclarator represents the node structured_binding_declarator in the syntax tree of your code.

#include <utility>
#include <tuple>

std::pair<int,int> foo() { return {1,2}; }

void bar() {
    auto [x, y] = foo();   // structured_binding_declarator node covering "x, y"
}

The auto [x, y] = foo(); line contains the structured_binding_declarator node.

Predicates

expand all

Version History

Introduced in R2026a