radixSort

Radix sort of input.

Note that this implementation of non-inplace radix sort only requires input to be a BidirectionalRange not a RandomAccessRange.

Note that input can be a BidirectionalRange aswell as RandomAccessRange.

radixBitCount is the number of bits in radix (digit)

TODO: make radixBitCount a template parameter either 8 or 16, ElementType.sizeof must be a multiple of radixBitCount

TODO: input[] = y[] not needed when input is mutable

TODO: Restrict fun.

TODO: Choose fastDigitDiscardal based on elementMin and elementMax (if they are given)

@trusted
radixSort
(
R
alias fun = "a"
bool descending = false
bool requestDigitDiscardal = false
bool inPlace = false
)
()
if (
isRandomAccessRange!R &&
(isNumeric!(ElementType!R))
)

See Also

Meta