cppreference.cn
创建账户
登录
命名空间
页面
讨论
变体
视图
查看
编辑
历史
操作
std::experimental::atomic_weak_ptr<T>::
is_lock_free
来自 cppreference.cn
<
cpp
|
experimental
|
atomic weak ptr
C++
编译器支持
独立和宿主式
语言
标准库
标准库头文件
命名要求
Feature test macros
(C++20 起)
语言支持库
Concepts library
(C++20 起)
诊断库
内存管理库
Metaprogramming library
(C++11 起)
通用工具库
容器库
迭代器库
Ranges library
(C++20 起)
算法库
字符串库
文本处理库
数值库
日期和时间库
输入/输出库
Filesystem library
(C++17 起)
Concurrency support library
(C++11 起)
Execution control library
(C++26 起)
技术规范
符号索引
外部库
[编辑]
实验性
技术规范
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals TS v2)
Library fundamentals 3
(library fundamentals TS v3)
Extensions for parallelism
(parallelism TS)
Extensions for parallelism 2
(parallelism TS v2)
Extensions for concurrency
(concurrency TS)
Extensions for concurrency 2
(concurrency TS v2)
Concepts
(concepts TS)
Ranges
(ranges TS)
Reflection
(reflection TS)
Mathematical special functions
(special functions TR)
实验性非 TS
模式匹配
线性代数
std::execution
契约
2D 图形
[编辑]
并发扩展
std::future 扩展
experimental::future
experimental::shared_future
experimental::when_all
experimental::when_any
experimental::make_ready_future
experimental::make_exceptional_future
闩锁和栅栏
experimental::latch
experimental::barrier
experimental::flex_barrier
原子智能指针
experimental::atomic_shared_ptr
experimental::atomic_weak_ptr
[编辑]
std::experimental::atomic_weak_ptr
atomic_weak_ptr::atomic_weak_ptr
atomic_weak_ptr::operator=
atomic_weak_ptr::is_lock_free
atomic_weak_ptr::store
atomic_weak_ptr::load
atomic_weak_ptr::operator weak_ptr<T>
atomic_weak_ptr::exchange
atomic_weak_ptr::compare_exchange_weak
atomic_weak_ptr::compare_exchange_strong
[编辑]
bool
is_lock_free
(
)
const
noexcept
;
检查此类型的所有对象的原子操作是否为无锁的。
[
edit
]
参数
(无)
[
edit
]
返回值
true
如果此类型的对象的原子操作是无锁的,则为 true,
false
否则为 false。
[
edit
]
参见
std::atomic_is_lock_free
(std::shared_ptr)
std::atomic_load
(std::shared_ptr)
std::atomic_load_explicit
(std::shared_ptr)
std::atomic_store
(std::shared_ptr)
std::atomic_store_explicit
(std::shared_ptr)
std::atomic_exchange
(std::shared_ptr)
std::atomic_exchange_explicit
(std::shared_ptr)
std::atomic_compare_exchange_weak
(std::shared_ptr)
std::atomic_compare_exchange_strong
(std::shared_ptr)
std::atomic_compare_exchange_weak_explicit
(std::shared_ptr)
std::atomic_compare_exchange_strong_explicit
(std::shared_ptr)
(C++20 中已弃用)
(C++26 中已移除)
为
std::shared_ptr
特化原子操作
(函数模板)
[编辑]