|
Core Library
1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
|
Templated static class to perform a insertion sort. More...
#include <GenericSorting.h>
Public Types | |
| using | item_compare = Pred |
| Public typedef for predicate. | |
Static Public Member Functions | |
| template<typename TIterator > | |
| static void | Sort (TIterator begin, TIterator end) |
| In-place static sort function. More... | |
Templated static class to perform a insertion sort.
Template args are T, the type of value to be sorted, and Pred, the comparison functor to compare items of type T. The default comparison predicate is std::less<T>.
|
inlinestatic |
In-place static sort function.
| [in] | begin | - The begining of the collection to sort. |
| [in] | end | - The end of the collection to sort (in STL fashion this is the item just after the last item to be sorted). |
This function sorts a collection (vector, list etc) of items of type T between a begin and end iterator.