检索在atomic对象中存储的值,在指定的memory_order中。 template <class Ty> inline Ty atomic_load_explicit( const volatile atomic<Ty> *Atom, memory_order Order ) _NOEXCEPT; template <class Ty> inline Ty atomic_load_explicit( const atomic<Ty> *Atom, memory_order Order ) _NOEXCEPT; ...
count =0;if(atomic_load_explicit(&v, memory_order_relaxed) != count++)abort();elsev++;if(atomic_load_explicit(&v, memory_order_acquire) != count++)abort();elsev++;if(atomic_load_explicit(&v, memory_order_consume) != count++)abort();elsev++;if(atomic_load_explicit(&v, memory_or...