std::atomic::operator T()
STd::原子::运算符T%28%29
| | (since C++11) |
---|---|---|
operator T() const; | | |
operator T() const volatile; | | |
原子加载并返回原子变量的当前值。相当于load()
...
参数
%280%29
返回值
原子变量的当前值。
例外
noexcept
规格:
noexcept
另见
load | atomically obtains the value of the atomic object (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。