talking about linked lists,
stl provides us a number of function we can apply on linked lists, but majority of the questions can’t be solved by the use of stl functions only we had to define our own class and its functions to solve the question but there are some functionalities like sorting a linked list which can be done in a single line using stl but when we are solving the problem using user defined classes and functions then to write a sort function it requires some good effort and time,so is it possible that we first declare a list using stl and add elements in it using pushback or initialisation and then sort it using stl , then after sorting, we will copy the elements of the list in an object of user defined class to make the question easy.
so can this be done i.e copying of elements from list to user defined object.