front method

T front()

Returns the front element without removing it (C++ STL naming).

Implementation

T front() => getFront();