
c++17
风清扬_jd
专注搬砖
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++11 lambda 与stl 仿函数
#include <iostream> #include <vector> #include <algorithm> using namespace std; typedef std::vector<int>CVectAges; //c++11 lamada 与stl 仿函数 int main() { CVectAges tmp; for (int n = 0; n < 10; n++) { tmp.push_back(10 + n).原创 2020-06-23 14:21:43 · 363 阅读 · 1 评论 -
c++ 11 std::thread std::mutex等实现线程队列演示例子!
#include <iostream> // std::cout #include <thread> // std::thread #include <mutex> // std::mutex, std::unique_lock #include <condition_variable...原创 2020-01-09 14:12:40 · 800 阅读 · 1 评论 -
error C2429: 语言功能 ;if/switch 中的 init-statement;需要编译器标志;/std:c++17
#include <iostream> #include <iomanip> #include <memory> using namespace std; struct Foo { int value; Foo(int i) : value{i} {} ~Foo() { cout << "DTOR Foo " <...原创 2018-07-18 21:41:29 · 8958 阅读 · 4 评论