forward_list::before_begin() is an inbuilt function in CPP STL which returns a iterator which points to the position before the first element of the forward_list.
Parameters: The function does not accept any parameter.
Return value: The function returns an iterator which points to the position before the first element of the forward_list.
Below program demonstrates the above function:
Element of the list are: 10 20 30 40 50
Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.