STL_algorithm

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/koreyoshi_chm/article/details/64130262

官方参考链接:http://www.cplusplus.com/reference/algorithm/

目前个人使用过的函数说明:

min_element:ForwardIterator min_element ( ForwardIterator first, ForwardIterator last )

作用:求序列的最小值

参数: first:最初位置 last最小位置

实战经验:结合vector可以快速求出序列的最小值

return *min_element(v1.begin(),v1.end());



猜你喜欢

转载自blog.csdn.net/koreyoshi_chm/article/details/64130262