template<class TYPE>
class bdlcc::Deque< TYPE >::DequeThrowGuard
This private class
is used to manage a bsl::deque
, during the course of an operation by a bdlcc::Deque
. Because it has a release
method, it is actually a proctor, but we call it a guard
to avoid having clients confuse it with this component's Proctor
and ConstProctor
types. A deque
that is being managed may only grow, and only on one end or the other. If a throw happens during the course of the operation and this guard's destructor is called while still managing the object, it will restore the managed object to its initial state via operations that are guaranteed not to throw.