1 #ifndef ENTT_CORE_ALGORITHM_HPP 2 #define ENTT_CORE_ALGORITHM_HPP 33 template<
typename It,
typename Compare = std::less<>>
34 void operator()(It first, It last, Compare compare = Compare{})
const {
35 std::sort(std::move(first), std::move(last), std::move(compare));
53 template<
typename It,
typename Compare = std::less<>>
54 void operator()(It first, It last, Compare compare = Compare{})
const {
61 while(pre != first && compare(value, *(pre-1))) {
76 #endif // ENTT_CORE_ALGORITHM_HPP
void operator()(It first, It last, Compare compare=Compare{}) const
Sorts the element in a range.
Function object for performing insertion sort.
Function object to wrap std::sort in a class type.
void operator()(It first, It last, Compare compare=Compare{}) const
Sorts the element in a range.