libstdc++
GNU C++ library
Loading...
Searching...
No Matches

◆ _M_default_initialize()

template<typename _Tp, typename _Alloc>
void deque::_M_default_initialize ( )
protected

Definition at line 69 of file deque.tcc.

71 {
73 __try
74 {
75 for (__cur = this->_M_impl._M_start._M_node;
76 __cur < this->_M_impl._M_finish._M_node;
77 ++__cur)
80 std::__uninitialized_default_a(this->_M_impl._M_finish._M_first,
83 }
84 __catch(...)
85 {
86 std::_Destroy(this->_M_impl._M_start, iterator(*__cur, __cur),
89 }
90 }
#define __catch(X)
constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last)
_Elt_pointer _M_cur
Definition stl_deque.h:145
_Deque_impl _M_impl
Definition stl_deque.h:616
static size_t _S_buffer_size() noexcept
Definition stl_deque.h:831
_Tp_alloc_type & _M_get_Tp_allocator() noexcept
Definition stl_deque.h:571
_Base::_Map_pointer _Map_pointer
Definition stl_deque.h:814
_Base::iterator iterator
Definition stl_deque.h:822
A standard container using fixed-size memory allocation and constant-time manipulation of elements at...
Definition stl_deque.h:792

References deque(), __catch, __throw_exception_again, __try, std::_Destroy(), _M_get_Tp_allocator(), _M_impl, and _S_buffer_size().

Here is the call graph for this function: