pivotPartition.pivotPartition

  1. size_t pivotPartition(Slice!(Iterator, N, kind) slice, size_t pivot)
    template pivotPartition(alias less = "a < b")
    @trusted
    @optmath
    static if(__traits(isSame, naryFun!less, less))
    size_t
    pivotPartition
    (
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    ,
    size_t pivot
    )
  2. alias pivotPartition = .pivotPartition!(naryFun!less)

Parameters

slice Slice!(Iterator, N, kind)

slice being partitioned

pivot size_t

The index of the pivot for partitioning, must be less than slice.length or 0 if slice.length is 0

Meta