tryPopFront overloads
Synopses
Declared in <bdlcc_deque.h>
Remove up to the specified maxNumItems from the front of this container. Optionally specify a buffer into which the items removed from the container are appended. If buffer is non‐null, the removed items are appended to it as if by repeated application of buffer‐>push_back(popFront()) while the const is not empty and maxNumItems have not yet been removed. Note that *buffer is not cleared ‐‐ the popped items are appended after any pre‐existing contents.
void
tryPopFront(size_type maxNumItems);
If this container is non‐empty, remove the first item, load that item into the specified *item, and return 0 indicating success. If this container is empty, return a non‐zero value with no effect on *item or the state of this container.
int
tryPopFront(TYPE* item);
Same as the preceding overload, appending removed items to buffer.
void
tryPopFront(
size_type maxNumItems,
bsl::vector<TYPE>* buffer);
Same as the preceding overload, appending removed items to buffer.
void
tryPopFront(
size_type maxNumItems,
std::pmr::vector<TYPE>* buffer);
Same as the preceding overload, appending removed items to buffer.
void
tryPopFront(
size_type maxNumItems,
std::vector<TYPE>* buffer);
Created with MrDocs