| 521 | |
| 522 | template<typename T> |
| 523 | static inline void swap_relaxed(std::atomic<T>& left, std::atomic<T>& right) |
| 524 | { |
| 525 | T temp = left.load(std::memory_order_relaxed); |
| 526 | left.store(right.load(std::memory_order_relaxed), std::memory_order_relaxed); |
| 527 | right.store(temp, std::memory_order_relaxed); |
| 528 | } |
| 529 | |
| 530 | template<typename T> |
| 531 | static inline T const& nomove(T const& x) |
no test coverage detected