std::atomic<T>:: operator T
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
atomic::operator T
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
|
(C++20)
|
||||
| Constants | ||||
|
(C++17)
|
||||
| Specialized member functions | ||||
|
Specialized for integral,
floating-point (C++20) and pointer types |
||||
|
Specialized for integral and
pointer types only |
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
| Specialized for integral types only | ||||
|
operator T
(
)
const
noexcept
;
|
(1) | (C++11부터) |
|
operator T
(
)
const
volatile
noexcept
;
|
(2) | (C++11부터) |
원자 변수의 현재 값을 원자적으로 로드하여 반환합니다. 다음과 동일합니다: load ( ) .
|
다음 경우에 사용이 권장되지 않습니다: std:: atomic < T > :: is_always_lock_free 가 false 이고 오버로드 (2) 가 오버로드 해결에 참여하는 경우입니다. |
(since C++20) |
매개변수
(없음)
반환값
원자 변수의 현재 값.
참고 항목
|
원자적 객체의 값을 원자적으로 획득합니다
(public member function) |