EnTT 3.14.0
|
Function object for performing LSD radix sort. More...
#include <algorithm.hpp>
Public Member Functions | |
template<typename It , typename Getter = identity> | |
void | operator() (It first, It last, Getter getter=Getter{}) const |
Sorts the elements in a range. | |
Function object for performing LSD radix sort.
Bit | Number of bits processed per pass. |
N | Maximum number of bits to sort. |
Definition at line 79 of file algorithm.hpp.
|
inline |
Sorts the elements in a range.
Sorts the elements in a range using the given getter to access the actual data to be sorted.
This implementation is inspired by the online book Physically Based Rendering.
It | Type of random access iterator. |
Getter | Type of getter function object. |
first | An iterator to the first element of the range to sort. |
last | An iterator past the last element of the range to sort. |
getter | A valid getter function object. |
Definition at line 98 of file algorithm.hpp.