forward_list::before_begin

Returns an iterator addressing the position before the first element in a forward list.

const_iterator before_begin() const;
iterator before_begin();

Return Value

A forward iterator that points just before the first element of the sequence (or just before the end of an empty sequence).

Requirements

Header: <forward_list>

Namespace: std

See Also

Reference

forward_list Class

Other Resources

forward_list Members