@@ -1833,23 +1833,26 @@ the `my_type` component, regardless of what other components they have.
18331833
18341834### View pack
18351835
1836- Views are combined with each other to create new and more specific queries.<br />
1837- The type returned when combining multiple views together is itself a view, more
1838- in general a multi component one.
1836+ Views are combined with storage objects and with each other to create new, more
1837+ specific _ queries_ .<br />
1838+ The type returned when combining multiple elements together is itself a view,
1839+ more in general a multi component one.
18391840
1840- Combining different views tries to mimic C++20 ranges:
1841+ Combining different elements tries to mimic C++20 ranges:
18411842
18421843``` cpp
18431844auto view = registry.view<position>();
18441845auto other = registry.view<velocity>();
1846+ const auto &storage = registry.storage<renderable>();
18451847
1846- auto pack = view | other;
1848+ auto pack = view | other | renderable ;
18471849```
18481850
18491851The constness of the types is preserved and their order depends on the order in
1850- which the views are combined. For example, the pack above returns an instance of
1851- ` position ` first and then one of ` velocity ` .<br />
1852- Since combining views generates views, a chain can be of arbitrary length and
1852+ which the views are combined. For example, the above _ pack_ first returns an
1853+ instance of ` position ` , then one of ` velocity ` , and finally one of
1854+ ` renderable ` .<br />
1855+ Since combining elements generates views, a chain can be of arbitrary length and
18531856the above type order rules apply sequentially.
18541857
18551858### Iteration order
0 commit comments