chsvlib
chsv helper source code

◆ swap()

void swap ( sbo_vector< ElementType, sbo_threshold, Allocator > &  right)

Swaps contents of the vector with another vector.

Parameters
rightThe other vector to swap the contents with.
Remarks
Invalidates iterators associated with both vectors.
The procedure may involve move-construction and destruction of elements.
Swaps allocators, if std::allocator_traits<allocator_type>::propagate_on_container_swap::value is false.