| 425 | } |
| 426 | |
| 427 | constexpr void swap(array& other) noexcept(std::is_nothrow_swappable_v<V>) { |
| 428 | for (std::size_t i = 0; i < a.size(); ++i) { |
| 429 | auto v = std::move(other.a[i]); |
| 430 | other.a[i] = std::move(a[i]); |
| 431 | a[i] = std::move(v); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | [[nodiscard]] friend constexpr bool operator==(const array& a1, const array& a2) { return detail::equal(a1, a2); } |
| 436 |