Range primitives
Returns the physical index into the source range corresponding to a given logical index. This is useful, for example, when indexing an Indexed without adding another layer of indirection.
Range primitives
Range primitives
Returns the indices range.
Range primitives
Returns the source range.
This struct takes two ranges, source and indices, and creates a view of source as if its elements were reordered according to indices. indices may include only a subset of the elements of source and may also repeat elements.
Source must be a random access range. The returned range will be bidirectional or random-access if Indices is bidirectional or random-access, respectively.