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

◆ clear()

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
void std::deque< _Tp, _Alloc >::clear ( )
inlinenoexcept

Erases all the elements. Note that this function only erases the elements, and that if the elements themselves are pointers, the pointed-to memory is not touched in any way. Managing the pointer is the user's responsibility.

Definition at line 1934 of file stl_deque.h.

1935 { _M_erase_at_end(begin()); }
void _M_erase_at_end(iterator __pos)
Definition stl_deque.h:2248
iterator begin() noexcept
Definition stl_deque.h:1213

Referenced by _M_erase(), and _M_range_initialize().

Here is the caller graph for this function: