MyraMath
Functions
insertion_sort.h File Reference

Insertion sort for a contiguous range of T's. More...

#include <cstddef>
Include dependency graph for insertion_sort.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
void myra::insertion_sort (T *begin, T *end)
 Sorts the T's within the range [begin,end). Note T must be assignable.
 
template<class T >
void myra::insertion_sort (T *begin, size_t N)
 Sorts the T's within the range [begin,begin+N). Note T must be assignable.
 
template<class T , class Comparator >
void myra::insertion_sort (T *begin, T *end, const Comparator &cmp)
 Performs insertion_sort() using a custom Comparator.
 
template<class T , class Comparator >
void myra::insertion_sort (T *begin, size_t N, const Comparator &cmp)
 Performs insertion_sort() using a custom Comparator.
 

Detailed Description

Insertion sort for a contiguous range of T's.