front overloads

Synopses

Declared in <util/vecdeque.h>

Get a mutable reference to the first element of the deque. Requires !empty().

T&
front() noexcept;

Get a const reference to the first element of the deque. Requires !empty().

T const&
front() const noexcept;

Return Value

  • A mutable reference to the first element.

  • A const reference to the first element.

Created with MrDocs