diff --git a/sorting/insertion_sort.cpp b/sorting/insertion_sort.cpp index 4bfce9ce6..32315a87a 100644 --- a/sorting/insertion_sort.cpp +++ b/sorting/insertion_sort.cpp @@ -51,7 +51,7 @@ namespace sorting { /** \brief * Insertion Sort Function * - * @param arr Array to be sorted + * @param [in,out] arr Array to be sorted * @param n Size of Array */ template @@ -67,6 +67,10 @@ void insertionSort(T *arr, int n) { } } +/** Insertion Sort Function + * + * @param [in,out] arr pointer to array to be sorted + */ template void insertionSort(std::vector *arr) { size_t n = arr->size();