cpp/container/stack/top

Returns reference to the top element in the stack. This is the most recently pushed element. This element will be removed on a call to pop. Effectively calls.

Parameters
(none)

Return value
Reference to the last element

Complexity
Constant