|
EnTT 4.0.0
|
Function object for performing insertion sort. More...
#include <algorithm.hpp>
Public Member Functions | |
| template<typename Compare = stl::less<>> | |
| void | operator() (stl::random_access_iterator auto first, stl::random_access_iterator auto last, Compare compare=Compare{}) const |
| Sorts the elements in a range. | |
Function object for performing insertion sort.
Definition at line 42 of file algorithm.hpp.
|
inline |
Sorts the elements in a range.
Sorts the elements in a range using the given binary comparison function.
| Compare | Type of comparison 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. |
| compare | A valid comparison function object. |
Definition at line 54 of file algorithm.hpp.