摘要:
1、函数式编程如std::bind、std::thread传参数等使用时,是对参数直接拷贝而不是引用 如: #include <functional> #include <iostream> void f(int& n1, int& n2, const int& n3) { std::cout << 阅读全文
posted @ 2022-05-31 15:32
朱小勇
阅读(179)
评论(0)
推荐(0)
摘要:
1、功能 用一个从value递增的数列给[first, last)的容器赋值 2、实例 #include <iostream> #include <vector> #include <numeric> int main() { std::vector<int> nums(10); for (int 阅读全文
posted @ 2022-05-31 14:51
朱小勇
阅读(1366)
评论(0)
推荐(0)