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

◆ emplace_back()

template<typename _Tp, typename _Alloc>
template<typename... _Args>
deque< _Tp, _Alloc >::reference deque::emplace_back ( _Args &&... __args)

Definition at line 164 of file deque.tcc.

166 {
167 if (this->_M_impl._M_finish._M_cur
169 {
171 this->_M_impl._M_finish._M_cur,
173 ++this->_M_impl._M_finish._M_cur;
174 }
175 else
177#if __cplusplus > 201402L
178 return back();
179#endif
180 }
_Elt_pointer _M_last
Definition stl_deque.h:147
_Deque_impl _M_impl
Definition stl_deque.h:616
reference back() noexcept
Definition stl_deque.h:1535
void _M_push_back_aux(_Args &&... __args)
Helper functions for push_* and pop_*.
Definition deque.tcc:485
A standard container using fixed-size memory allocation and constant-time manipulation of elements at...
Definition stl_deque.h:792
static constexpr std::__enable_if_t< __is_custom_pointer< _Ptr >::value > construct(_Tp_alloc_type &__a, _Ptr __p, _Args &&... __args) noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), std::forward< _Args >(__args)...)))

References deque(), _M_impl, _M_push_back_aux(), back(), __gnu_cxx::__alloc_traits< _Tp_alloc_type >::construct(), and std::forward().

Referenced by _M_range_initialize(), and emplace().

Here is the call graph for this function:
Here is the caller graph for this function: