Skip to content

Commit 6d9b752

Browse files
authored
Update README.md
1 parent a29af7b commit 6d9b752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comprehension/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,7 @@ The static slice operator `...[begin:end:step]` transforms the template paramete
13571357

13581358
### Static slices on tuple-like objects
13591359

1360-
The static slice operator `.[begin:end:step]` also works when applied to non-pack expressions with array, tuple-like or class types. It presents busts up the entity and exposes it as a _heterogeneous_ non-type static pack. The same semantic rules for fixing structured bindings to initializers is at play here:
1360+
The static slice operator `.[begin:end:step]` also works when applied to non-pack expressions with array, tuple-like or class types. It busts up the entity and exposes it as a _heterogeneous_ non-type static pack. The same semantic rules for fixing structured bindings to initializers is at play here:
13611361

13621362
1. If the operand is an array, each element in the static parameter pack is one array element.
13631363
1. If specializing `std::tuple_size` on the operand's type finds a partial template specialization (or technically a specialization that's not incomplete), the object is treated as "tuple-like." `std::tuple_element` breaks the object apart into elements. `std::array`, `std::pair` and `std::tuple` all provide specializations for these class templates.

0 commit comments

Comments
 (0)