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

◆ _M_reserve_map_at_front()

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
void std::deque< _Tp, _Alloc >::_M_reserve_map_at_front ( size_type __nodes_to_add = 1)
inlineprotected

Memory-handling helpers for the major map.

Makes sure the _M_map has space for new nodes. Does not actually add the nodes. Can invalidate _M_map pointers. (And consequently, deque iterators.)

Definition at line 2318 of file stl_deque.h.

2319 {
2320 if (__nodes_to_add > size_type(this->_M_impl._M_start._M_node
2321 - this->_M_impl._M_map))
2323 }
void _M_reallocate_map(size_type __nodes_to_add, bool __add_at_front)
Memory-handling helpers for the major map.
Definition deque.tcc:1109
_Deque_impl _M_impl
Definition stl_deque.h:616
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_new_elements_at_front(), and _M_push_front_aux().

Here is the caller graph for this function: