Remove all elements, appending them to buffer.

Synopsis

Declared in <bdlcc_deque.h>

void
removeAll(std::vector<TYPE>* buffer);

Description

Append all the elements from this container to the specified *buffer in the same order, then clear this container. Note that the previous contents of *buffer are not discarded ‐‐ the removed items are appended to it.

Parameters

Name

Description

buffer

vector that receives the removed items

Created with MrDocs