随笔分类 - cpp
摘要:原生并行版std::accumulate 代码来自《c++并发编程实战》 #include <iostream> #include <numeric> #include <algorithm> #include <thread> #include <functional> #include <v
阅读全文
摘要:cpp笔记 请见: 序言 现代 C++ 教程: 高速上手 C++ 11/14/17/20 - Modern C++ Tutorial: C++ 11/14/17/20 On the Fly (changkun.de) 1. 指针常量和常量指针 1.指针常量:不能修改指针所指向的地址。定义同时必须
阅读全文