瀏覽代碼

fixed minof

devel
Ludovic 'Archivist' Lagouardette 4 年之前
父節點
當前提交
4c4ff05b93
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/gp/algorithm/min_of.hpp

+ 1
- 1
include/gp/algorithm/min_of.hpp 查看文件

@ -11,7 +11,7 @@ namespace gp{
template<typename it, typename transform>
auto&& min_of(it beg, it end, transform fn = identity) {
gp_config::assertion(beg == end, "min_of provided with empty range");
gp_config::assertion(beg != end, "min_of provided with empty range");
auto fn_v = fn(*beg);
++beg;
while(beg != end) {

Loading…
取消
儲存