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

◆ front() [2/2]

template<typename _Tp, typename _Alloc = std::allocator<_Tp>>
reference std::deque< _Tp, _Alloc >::front ( )
inlinenodiscardnoexcept

Returns a read/write reference to the data at the first element of the deque.

Definition at line 1511 of file stl_deque.h.

1512 {
1514 return *begin();
1515 }
#define __glibcxx_requires_nonempty()
Definition assertions.h:41
iterator begin() noexcept
Definition stl_deque.h:1213

Referenced by _M_emplace_aux(), and emplace_front().

Here is the caller graph for this function: