瀏覽代碼

Forgot to comment whatever depended on partition tehe

master
Ludovic 'Archivist' Lagouardette 3 年之前
父節點
當前提交
fdaa5e0f55
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      include/gp/algorithms/sort.hpp

+ 2
- 2
include/gp/algorithms/sort.hpp 查看文件

@ -29,7 +29,7 @@ namespace gp {
}
return false;
};
/*
template<typename it_t, typename pred>
void quick_sort(it_t first, it_t last, pred predicate = pred{}) {
using __details::sort2;
@ -45,7 +45,7 @@ namespace gp {
gp::__details::quick_sort(first, pivot, predicate);
gp::__details::quick_sort(pivot, last, predicate);
}
*/
template<typename it_t, typename pred>
void bubble_sort(it_t first, it_t last, pred predicate = pred{}) {
if(last - first <= 2) {

Loading…
取消
儲存