std::atomic...ed_alignment(3)
std::atomic...ed_alignment(3) π β¨
okay so this page is from the C++ Standard Libary, bestie β manual name folded in, exactly like the header wanted β and the actual full name of the thing is std::atomic_ref::required_alignment. π«Ά
πΈ NAME πΈ
std::atomic_ref::required_alignmentβ the required alignment situation forstd::atomic_ref, and also literally the name again because the original page says it twice:std::atomic_ref::required_alignment. periodt. π
π Synopsis π
static constexpr std::size_t required_alignment =
(since C++20)
/*implementation-defined*/;
The value of required_alignment is the alignment an object needs so it can be referenced by an atomic reference, and it is at least alignof(T). no cap. β¨
π Notes π
Hardware could require that an object referenced by an atomic_ref<T> have stricter alignment than other T objects. Also, whether operations on an atomic_ref are lock-free can depend on the alignment of the referenced object. iykyk. π
cute little sign-off: this page comes from cppreference.com, with the date/version 2024.06.10, and the footer title is std::atomic...ed_alignment(3). luv u, bye bestie πππ¦
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms