![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ 11
文章平均质量分 56
该专栏会定期更新
zfg_
这个作者很懒,什么都没留下…
展开
-
std::atomic::compare_exchange_weak
https://www.cplusplus.com/reference/atomic/atomic/compare_exchange_weak/#include // std::cout#include // std::atomic#include // std::thread#include // std::vector// a simple global linked list:struct Node { int val.翻译 2021-10-07 15:44:33 · 585 阅读 · 0 评论 -
第三章 转向现代C++
c++11和c++14新特性中auto、智能指针、移动语义、lambda表达式、并发等等相关内容,相关代码附在文末item7 创建对象时区分()和{}大括号语境最为广泛,阻止隐士窄化型别转换,对most vexing parse免疫double x, y, z;int sum1{x + y + z}; //错误!窄化转换int sum2(x + y + z); //通过,进行表达式截断int sum3 = x + y + z; // 同上Widget w(); //此处声明一个名为w、返回原创 2021-10-03 20:03:14 · 75 阅读 · 0 评论 -
第一章 型别推导
item 1:理解模板型别推导原创 2021-09-30 22:50:59 · 72 阅读 · 0 评论