41 #ifndef PB_DS_COND_DEALTOR_HPP 42 #define PB_DS_COND_DEALTOR_HPP 49 template<
typename Entry,
typename _Alloc>
52 typedef typename _Alloc::template rebind<Entry> __rebind_e;
55 typedef typename __rebind_e::other entry_allocator;
56 typedef typename entry_allocator::pointer entry_pointer;
59 : m_p_e(p_e), m_no_action_destructor(
false) { }
63 if (m_no_action_destructor)
65 s_alloc.deallocate(m_p_e, 1);
70 { m_no_action_destructor =
true; }
74 bool m_no_action_destructor;
75 static entry_allocator s_alloc;
78 template<
typename Entry,
class _Alloc>
79 typename cond_dealtor<Entry, _Alloc>::entry_allocator
84 #endif // #ifndef PB_DS_COND_DEALTOR_HPP Conditional deallocate constructor argument.
GNU extensions for policy-based data structures for public use.