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

◆ _M_reserve_elements_at_back()

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
iterator std::deque< _Tp, _Alloc >::_M_reserve_elements_at_back ( size_type __n)
inlineprotected

Memory-handling helpers for the previous internal insert functions.

Definition at line 2284 of file stl_deque.h.

2285 {
2286 const size_type __vacancies = (this->_M_impl._M_finish._M_last
2287 - this->_M_impl._M_finish._M_cur) - 1;
2288 if (__n > __vacancies)
2290 return this->_M_impl._M_finish + difference_type(__n);
2291 }
ptrdiff_t difference_type
Definition stl_deque.h:827
_Deque_impl _M_impl
Definition stl_deque.h:616
void _M_new_elements_at_back(size_type __new_elements)
Memory-handling helpers for the previous internal insert functions.
Definition deque.tcc:1084
size_t size_type
Definition stl_deque.h:826
A standard container using fixed-size memory allocation and constant-time manipulation of elements at...
Definition stl_deque.h:792

Referenced by _M_default_append(), _M_fill_insert(), _M_insert_aux(), _M_insert_aux(), and _M_range_append().

Here is the caller graph for this function: