swap method
- Queue<
T> other
Exchanges the contents of this queue with those of other.
Implementation
void swap(Queue<T> other) {
_container.swap(other._container);
}
Exchanges the contents of this queue with those of other.
void swap(Queue<T> other) {
_container.swap(other._container);
}