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