Luna::RingDeque::resize
void resize(usize n)
Resizes the queue.
Parameters
-
in n
The new size of the queue.
If n
is greater than size, n - size()
new elements will be default-inserted at the back of the queue.
If n
is smaller than size, size() - n
elements will be removed from the back of the queue.
If n
is equal to size, this function does nothing.