how to insert the node at last in forward list there is no push_back function in the list.
Forward list inseration at end
@aman212yadav when we create a forward_list and we point the iterator to the begin() so it wiill act like a head pointer pointing to the first node ?
when to did list.before_begins where does it extacly point?
@aman212yadav okays but we is that first element null or something else because its always pointed the before the first elements
before_begin iterator is similar to end() iterator. that is they cannot be dereferenced .
the main purpose of this iterator is to specify the beginning of the list
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.