The OpenD Programming Language

pivotPartition.pivotPartition

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

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