18
18
//!
19
19
//! Each method takes an [`Ordering`] which represents the strength of
20
20
//! the memory barrier for that operation. These orderings are the
21
- //! same as the [C++ atomic orderings][1]. For more information see the [nomicon][2].
21
+ //! same as the [C++20 atomic orderings][1]. For more information see the [nomicon][2].
22
22
//!
23
23
//! [`Ordering`]: enum.Ordering.html
24
24
//!
@@ -218,7 +218,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
218
218
/// operations across all threads.
219
219
///
220
220
/// Rust's memory orderings are [the same as those of
221
- /// C++](https://en.cppreference.com/w/cpp/atomic/memory_order).
221
+ /// C++20 ](https://en.cppreference.com/w/cpp/atomic/memory_order).
222
222
///
223
223
/// For more information see the [nomicon].
224
224
///
@@ -231,7 +231,7 @@ unsafe impl<T> Sync for AtomicPtr<T> {}
231
231
pub enum Ordering {
232
232
/// No ordering constraints, only atomic operations.
233
233
///
234
- /// Corresponds to [`memory_order_relaxed`] in C++.
234
+ /// Corresponds to [`memory_order_relaxed`] in C++20 .
235
235
///
236
236
/// [`memory_order_relaxed`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Relaxed_ordering
237
237
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -246,7 +246,7 @@ pub enum Ordering {
246
246
///
247
247
/// This ordering is only applicable for operations that can perform a store.
248
248
///
249
- /// Corresponds to [`memory_order_release`] in C++.
249
+ /// Corresponds to [`memory_order_release`] in C++20 .
250
250
///
251
251
/// [`Release`]: #Release
252
252
/// [`Acquire`]: #Acquire
@@ -264,7 +264,7 @@ pub enum Ordering {
264
264
///
265
265
/// This ordering is only applicable for operations that can perform a load.
266
266
///
267
- /// Corresponds to [`memory_order_acquire`] in C++.
267
+ /// Corresponds to [`memory_order_acquire`] in C++20 .
268
268
///
269
269
/// [`Acquire`]: #Acquire
270
270
/// [`Release`]: #Release
@@ -281,7 +281,7 @@ pub enum Ordering {
281
281
///
282
282
/// This ordering is only applicable for operations that combine both loads and stores.
283
283
///
284
- /// Corresponds to [`memory_order_acq_rel`] in C++.
284
+ /// Corresponds to [`memory_order_acq_rel`] in C++20 .
285
285
///
286
286
/// [`memory_order_acq_rel`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Release-Acquire_ordering
287
287
/// [`Acquire`]: #Acquire
@@ -293,7 +293,7 @@ pub enum Ordering {
293
293
/// operations, respectively) with the additional guarantee that all threads see all
294
294
/// sequentially consistent operations in the same order.
295
295
///
296
- /// Corresponds to [`memory_order_seq_cst`] in C++.
296
+ /// Corresponds to [`memory_order_seq_cst`] in C++20 .
297
297
///
298
298
/// [`memory_order_seq_cst`]: https://en.cppreference.com/w/cpp/atomic/memory_order#Sequentially-consistent_ordering
299
299
/// [`Acquire`]: #Acquire
0 commit comments