Files
2025-10-25 03:02:53 +03:00

1.0 KiB
Raw Permalink Blame History

[container.node.modifiers]

23 Containers library [containers]

23.2 Requirements [container.requirements]

23.2.5 Node handles [container.node]

23.2.5.5 Modifiers [container.node.modifiers]

🔗

constexpr void swap(node-handle& nh) noexcept(ator_traits::propagate_on_container_swap::value || ator_traits::is_always_equal::value);

1

#

Preconditions: !alloc_, or !nh.alloc_, orator_traits::propagate_on_container_swap::value is true, or alloc_ == nh.alloc_.

2

#

Effects: Calls swap(ptr_, nh.ptr_).

If !alloc_, or!nh.alloc_, or ator_traits::propagate_on_container_swap::value is true calls swap(alloc_, nh.alloc_).