Template:cpp/container/front

Returns a reference to the first element in the container.

Calling on an empty container causes undefined behavior.

Parameters
(none)

Return value
reference to the first element

Complexity
Constant

Example
{{#ifeq: {{{1|}}}|forward_list||