MCPcopy Create free account
hub / github.com/Neargye/magic_enum / swap

Method swap

include/magic_enum/magic_enum_containers.hpp:427–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected