bsl::Deque_ClearGuard

This class provides a proctor which, at destruction, calls clear on the deque supplied at construction, unless the guard has been released prior.

Synopsis

Declared in <bslstl_deque.h>

template<
    class VALUE_TYPE,
    class ALLOCATOR>
class Deque_ClearGuard;

Member Functions

NameDescription
Deque_ClearGuard [constructor]Create a clear guard object to proctor the specified deque.
~Deque_ClearGuard [destructor]Destroy this guard, and call clear on the deque supplied at construction, unless release has been called on this object.
release Release from management the deque proctored by this object.