|
Template Numerical Library version\ main:4e6e2c1
|
This page describes the lambda function signatures used in segment sort operations.
The fetch lambda retrieves the value of an element for comparison during sorting. It has one of the following forms:
Full form:
Brief form:
In both variants:
The compare lambda determines the ordering of two elements during sorting. It has the following signature:
The lambda should return true if a should come before or be equal to b in the sorted order.
The swap lambda exchanges two elements during the sorting process. It has the following signature:
The condition lambda determines which segments should be sorted. It has the following signature:
The lambda should return true if the segment should be sorted.