C++ Logo

std-proposals

Advanced search

[std-proposals] Structured binding without type inference

From: Oliver Schädlich <oliver.schaedlich_at_[hidden]>
Date: Sat, 11 May 2024 08:59:50 +0200

If all variables of a structured binding are the same I think structured
binding without type inference would improve the readability.

    pair<int, int> pii;
    int &[a, b] = pii;

Or:

    pair<int, char> pic;
    int [a, b] = pic;



Received on 2024-05-11 06:59:52