Alternative to ptr->next

how we use ptr->next using STL?

There is no such alternative for it.