BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsl::Deque_ClearGuard< VALUE_TYPE, ALLOCATOR > Class Template Reference

#include <bslstl_deque.h>

Public Member Functions

 Deque_ClearGuard (deque< VALUE_TYPE, ALLOCATOR > *deque)
 Create a clear guard object to proctor the specified deque.
 
 ~Deque_ClearGuard ()
 
void release ()
 Release from management the deque proctored by this object.
 

Detailed Description

template<class VALUE_TYPE, class ALLOCATOR>
class bsl::Deque_ClearGuard< VALUE_TYPE, ALLOCATOR >

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

See bslstl_deque

Constructor & Destructor Documentation

◆ Deque_ClearGuard()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Deque_ClearGuard< VALUE_TYPE, ALLOCATOR >::Deque_ClearGuard ( deque< VALUE_TYPE, ALLOCATOR > *  deque)
inlineexplicit

◆ ~Deque_ClearGuard()

template<class VALUE_TYPE , class ALLOCATOR >
bsl::Deque_ClearGuard< VALUE_TYPE, ALLOCATOR >::~Deque_ClearGuard ( )
inline

Destroy this guard, and call clear on the deque supplied at construction, unless release has been called on this object.

Member Function Documentation

◆ release()

template<class VALUE_TYPE , class ALLOCATOR >
void bsl::Deque_ClearGuard< VALUE_TYPE, ALLOCATOR >::release ( )
inline

The documentation for this class was generated from the following file: