IntPermutation
Bijection on [0, size), or on all 32-bit values when size == -1. size is read as unsigned. decode is the exact inverse of encode.
Not cryptographic. Construct with intPermutation.
Inheritors
Properties
size
Functions
decode
decodeUnchecked
decode without range checks. Out-of-domain input is unspecified and may not terminate.
encode
encodeUnchecked
encode without range checks. Out-of-domain input is unspecified and may not terminate.
iterator
Iterates encode(i) over the whole domain in index order.
Iterates encode(i) for unsigned indices i from offset, which must be in 0..size.
Link copied to clipboard
Returns a view of this permutation shifted onto range, which must hold exactly IntPermutation.size values. On an existing range view, replaces its range.