60 if (begin == end) {
return; }
61 for (It i = begin + 1; i != end; ++i) {
64 while (*j > *nj and j != begin) {
69 if (*j > *nj) { std::swap(*j, *nj); }
void insertion_sort(It begin, It end) noexcept
Insertion sort.
Definition: insertion_sort.hpp:58
Main namespace of the library.
Definition: basic_types.hpp:50