Template:cpp/container/merge assoc

Attempts to extract ("splice") each element in and insert it into  using the  of.

No elements are copied or moved, only the internal pointers of the container nodes are repointed. All pointers and references to the transferred elements remain valid, but now refer into, not into.

The behavior is undefined if.

Return value
(none)

{{cpp/container/if ord|{{{1}}}|

Exceptions
Does not throw unless comparison throws.

}}

Complexity
, where N is.