摘要:
1.set_intersection的用法 set_intersection用于求两个容器的交集,并将交集放到一个目标容器中,返回值是交集在目标容器中的最后一个元素的迭代器,#include <algorithm> #include <iostream> #include <vector> #inc 阅读全文
posted @ 2021-03-03 20:21
maycpou
阅读(580)
评论(0)
推荐(0)
摘要:
1.accumulate的用法 accumulate用于计算容器中所有元素的和,#include <numeric> #include <iostream> #include <vector> #include <numeric> int main(){ std::vector<int> vec0; 阅读全文
posted @ 2021-03-03 20:05
maycpou
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号