BloombergLP::bdlcc::FixedQueue_PushProctor::FixedQueue_PushProctor

Create a proctor that manages queue and clears it unless released.

Synopsis

Declared in <bdlcc_fixedqueue.h>

FixedQueue_PushProctor(
    FixedQueue<VALUE>* queue,
    unsigned int generation,
    unsigned int index);

Description

Create a proctor that manages the specified queue and, unless release is called, will remove and destroy all the elements from queue starting at the specified index in the specified generation. The behavior is undefined unless index and generation refers to a valid element in queue.

Parameters

NameDescription
queuequeue to manage
generationgeneration of the cell being pushed
indexindex of the cell being pushed