Skip to content

Commit b35c837

Browse files
Replace structured bindings example in ES.11 (isocpp#1840)
Closes isocpp#1655
1 parent 590c87b commit b35c837

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CppCoreGuidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10475,7 +10475,9 @@ When concepts become available, we can (and should) be more specific about the t
1047510475

1047610476
##### Example (C++17)
1047710477

10478-
auto [ quotient, remainder ] = div(123456, 73); // break out the members of the div_t result
10478+
std::set<int> values;
10479+
// ...
10480+
auto [ position, newly_inserted ] = values.insert(5); // break out the members of the std::pair
1047910481

1048010482
##### Enforcement
1048110483

0 commit comments

Comments
 (0)