std::atomic_ref<T>:: required_alignment
From cppreference.net
<
cpp
|
atomic
|
atomic ref
C++
Concurrency support library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::atomic_ref
| Member functions | ||||
|
(C++26)
|
||||
|
Operations for arithmetic types
(except
bool
and pointer-to-object)
|
||||
|
Operations for integral types
(except
bool
and pointer-to-object)
|
||||
|
(C++26)
|
||||
|
(C++26)
|
||||
|
Operations for integral types
(except
bool
)
|
||||
| Constants | ||||
|
atomic_ref::required_alignment
|
|
static
constexpr
std::
size_t
required_alignment
=
/*implementation-defined*/
;
|
(C++20부터) | |
required_alignment
의 값은 원자적 참조(atomic reference)로 참조될 객체에 필요한 정렬(alignment)로, 최소한
alignof
(
T
)
입니다.
참고 사항
하드웨어는
atomic_ref<T>
로 참조되는 객체가 다른
T
객체보다 더 엄격한 정렬을 요구할 수 있으며,
atomic_ref
에 대한 연산이 잠금 없는 방식으로 수행되는지는 참조된 객체의 정렬에 따라 달라질 수 있습니다.