Insert the specified item into this queue at dstIndex.
Synopsis
Declared in <bdlc_queue.h>
void
insert(
int dstIndex,
T const& item);
Description
Insert the specified item into this queue at the specified dstIndex. All current values with indices at or above dstIndex are shifted up by one index position. The behavior is undefined unless 0 <= dstIndex <= length().
Parameters
Name |
Description |
dstIndex |
index at which to insert |
item |
value to insert |
Created with MrDocs