摘要:
http://www.cplusplus.com/reference/algorithm/for_each/std::move()用于c++11http://www.cplusplus.com/reference/utility/move/c++98// for_each example#include // std::cout#include // std::for_each#include // std::vectorvoid myfunction (int i) { // function: std::cout myvector; myvector... 阅读全文
摘要:
template InputIterator find (InputIterator first, InputIterator last, const T& val){ while (first!=last) { if (*first==val) return first; ++first; } return last;}http://www.cplusplus.com/reference/algorithm/find/// find example#include // std::cout#include // std::find#include ... 阅读全文