File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 23392
23392
is \tcode{true}.
23393
23393
23394
23394
\pnum
23395
- Let \tcode{offset} be a value of type \tcode{size_t} equal to
23395
+ If \tcode{\exposid{first_}<index_type, $k$>(slices...)}
23396
+ equals \tcode{extents().extent($k$)}
23397
+ for any rank index $k$ of \tcode{extents()}, then
23398
+ let \tcode{offset} be a value of type \tcode{size_t} equal to
23399
+ \tcode{(*this).required_span_size()}.
23400
+ Otherwise,
23401
+ let \tcode{offset} be a value of type \tcode{size_t} equal to
23396
23402
\tcode{(*this)(\exposid{first_}<index_type, P>(slices...)...)}.
23397
23403
23398
23404
\rSec5[mdspan.sub.map.left]{\tcode{layout_left} specialization of \tcode{submdspan_mapping}}
23840
23846
\effects
23841
23847
Equivalent to:
23842
23848
\begin{codeblock}
23843
- auto sub_map_offset = submdspan_mapping(src.mapping(), slices...);
23844
- return mdspan(src.accessor().offset(src.data(), sub_map_offset .offset),
23845
- sub_map_offset .mapping,
23849
+ auto sub_map_result = submdspan_mapping(src.mapping(), slices...);
23850
+ return mdspan(src.accessor().offset(src.data(), sub_map_result .offset),
23851
+ sub_map_result .mapping,
23846
23852
AccessorPolicy::offset_policy(src.accessor()));
23847
23853
\end{codeblock}
23848
23854
\end{itemdescr}
You can’t perform that action at this time.
0 commit comments