作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用Ubuntu 16.04。我有gcc-9.2.0,但是我在/usr/local/include/c++/9.2.0/experimental
中找不到原子头文件,我想我在编译gcc时必须启用它,或者必须手动安装它,但是我没有找到任何提示所以。
最佳答案
所以我现在对std::experimental::atomic_shared_pointer
的理解是std::atomic(std::shared_ptr),所以我认为没有(也许不会)启用std::experimental::atomic_shared_pointer
的任何方法。
这就是我也要解释的方式
en.cppreference.com: std::experimental::atomic_shared_ptr:
Merged into ISO C++ The functionality described on this page was merged into the mainline ISO C++ standard as of 11/2017; see std::atomic> (since C++20)
关于c++ - 如何启用std::experimental::atomic_shared_pointer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59517197/
我正在使用Ubuntu 16.04。我有gcc-9.2.0,但是我在/usr/local/include/c++/9.2.0/experimental中找不到原子头文件,我想我在编译gcc时必须启用它
我是一名优秀的程序员,十分优秀!