Same as the preceding overload, appending removed items to the specified buffer.

Synopsis

Declared in <bdlcc_timequeue.h>

void
popLE(
    bsls::TimeInterval const& time,
    int maxTimers,
    bsl::vector<TimeQueueItem<DATA>>* buffer,
    int* newLength = 0,
    bsls::TimeInterval* newMinTime = 0);

Parameters

Name

Description

time

time threshold for removing items

maxTimers

maximum number of items to remove

buffer

receives the removed items

newLength

if non‐null, receives the new queue length

newMinTime

if non‐null, receives the new minimum time

Created with MrDocs