File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 577
577
#define @\defnlibxname {cpp_lib_atomic_is_always_lock_free}@ 201603L // freestanding, also in \libheader {atomic}
578
578
#define @\defnlibxname {cpp_lib_atomic_lock_free_type_aliases}@ 201907L // also in \libheader {atomic}
579
579
#define @\defnlibxname {cpp_lib_atomic_min_max}@ 202403L // freestanding, also in \libheader {atomic}
580
- #define @\defnlibxname {cpp_lib_atomic_ref}@ 201806L // freestanding, also in \libheader {atomic}
580
+ #define @\defnlibxname {cpp_lib_atomic_ref}@ 202411L // freestanding, also in \libheader {atomic}
581
581
#define @\defnlibxname {cpp_lib_atomic_shared_ptr}@ 201711L // also in \libheader {memory}
582
582
#define @\defnlibxname {cpp_lib_atomic_value_initialization}@ 201911L // freestanding, also in \libheader {atomic}, \libheader {memory}
583
583
#define @\defnlibxname {cpp_lib_atomic_wait}@ 201907L // freestanding, also in \libheader {atomic}
Original file line number Diff line number Diff line change 3154
3154
void wait(T, memory_order = memory_order::seq_cst) const noexcept;
3155
3155
void notify_one() const noexcept;
3156
3156
void notify_all() const noexcept;
3157
+ constexpr T* address() const noexcept;
3157
3158
};
3158
3159
}
3159
3160
\end {codeblock }
3539
3540
on atomic object \tcode {*ptr}.
3540
3541
\end {itemdescr }
3541
3542
3543
+ \indexlibrarymember {address}{atomic_ref<T>}%
3544
+ \begin {itemdecl }
3545
+ constexpr T* address() const noexcept;
3546
+ \end {itemdecl }
3547
+
3548
+ \begin {itemdescr }
3549
+ \pnum
3550
+ \returns
3551
+ \tcode {ptr}.
3552
+ \end {itemdescr }
3553
+
3542
3554
\rSec 3[atomics.ref.int]{Specializations for integral types}
3543
3555
3544
3556
\pnum
3631
3643
void wait(@\placeholdernc {integral-type}@, memory_order = memory_order::seq_cst) const noexcept;
3632
3644
void notify_one() const noexcept;
3633
3645
void notify_all() const noexcept;
3646
+ constexpr @\placeholder {integral-type}@* address() const noexcept;
3634
3647
};
3635
3648
}
3636
3649
\end {codeblock }
3760
3773
void wait(@\placeholdernc {floating-point-type}@, memory_order = memory_order::seq_cst) const noexcept;
3761
3774
void notify_one() const noexcept;
3762
3775
void notify_all() const noexcept;
3776
+ constexpr @\placeholder {floating-point-type}@* address() const noexcept;
3763
3777
};
3764
3778
}
3765
3779
\end {codeblock }
3871
3885
void wait(T*, memory_order = memory_order::seq_cst) const noexcept;
3872
3886
void notify_one() const noexcept;
3873
3887
void notify_all() const noexcept;
3888
+ constexpr @\placeholder {pointer-type}@* address() const noexcept;
3874
3889
};
3875
3890
}
3876
3891
\end {codeblock }
You can’t perform that action at this time.
0 commit comments