+= structured bindings mentioning; -= '\n' (#1646)

It worth to mention the *structured bindings* right in the *Reason* section.
This commit is contained in:
al-mission-2016 2020-07-09 21:04:17 +03:00 committed by GitHub
parent 72fba35f33
commit c6262ea1a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3076,8 +3076,7 @@ The argument against is prevents (very frequent) use of move semantics.
##### Reason
A return value is self-documenting as an "output-only" value.
Note that C++ does have multiple return values, by convention of using a `tuple` (including `pair`),
possibly with the extra convenience of `tie` at the call site.
Note that C++ does have multiple return values, by convention of using a `tuple` (including `pair`), possibly with the extra convenience of `tie` or structured bindings (C++17) at the call site.
Prefer using a named struct where there are semantics to the returned value. Otherwise, a nameless `tuple` is useful in generic code.
##### Example