OpenLexocad  27.1
entt::insertion_sort Struct Reference

Function object for performing insertion sort. More...

#include <entt.hpp>

Public Member Functions

template<typename It , typename Compare = std::less<>>
void operator() (It first, It last, Compare compare=Compare{}) const
 Sorts the elements in a range. More...
 

Detailed Description

Function object for performing insertion sort.

Member Function Documentation

◆ operator()()

template<typename It , typename Compare = std::less<>>
void entt::insertion_sort::operator() ( It  first,
It  last,
Compare  compare = Compare{} 
) const
inline

Sorts the elements in a range.

Sorts the elements in a range using the given binary comparison function.

Template Parameters
ItType of random access iterator.
CompareType of comparison function object.
Parameters
firstAn iterator to the first element of the range to sort.
lastAn iterator past the last element of the range to sort.
compareA valid comparison function object.

The documentation for this struct was generated from the following file: