Replace structured bindings example in ES.11 (#1840)

Closes #1655
This commit is contained in:
Alexey Dmitriev
2021-10-15 16:39:08 +03:00
committed by GitHub
parent 590c87bc4e
commit b35c837477

View File

@@ -10475,7 +10475,9 @@ When concepts become available, we can (and should) be more specific about the t
##### Example (C++17) ##### Example (C++17)
auto [ quotient, remainder ] = div(123456, 73); // break out the members of the div_t result std::set<int> values;
// ...
auto [ position, newly_inserted ] = values.insert(5); // break out the members of the std::pair
##### Enforcement ##### Enforcement