Query regarding usage of linked list stl

inside our stl code for linked lists as the pointer to the next node is made private so it means we can’t access the address of nodes,
so from this can i make an assumption in questions where it is not required to change the head or any other pointer of linked lists i must try to do the question using the stl functions provided to us and by creating new functions if required for the stl objects which will work by passing iterators of the linked lists.
and
in question where it requires to do something with the pointer or head of a linked list then we need to create our own node class and write functions in it according to our requirement as we are doing till now

@Parmeet-Kalsi-1631789033630118

Please see this documentation of the list STL, you will find that you can indeed access all the nodes 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.