| 505 | |
| 506 | template<typename T> |
| 507 | static inline void swap_relaxed(std::atomic<T>& left, std::atomic<T>& right) |
| 508 | { |
| 509 | T temp = std::move(left.load(std::memory_order_relaxed)); |
| 510 | left.store(std::move(right.load(std::memory_order_relaxed)), std::memory_order_relaxed); |
| 511 | right.store(std::move(temp), std::memory_order_relaxed); |
| 512 | } |
| 513 | |
| 514 | template<typename T> |
| 515 | static inline T const& nomove(T const& x) |
no outgoing calls
no test coverage detected