bsl::stack::top

Return a reference providing non-modifiable access to the element at the top of this stack. The behavior is undefined if the stack is empty.

Synopsis

Declared in <bslstl_stack.h>

CONTAINER::const_reference
top() const;