C++ List splice()C++ List splice function transfers the elements from list y into a list container at a specified position and this leads to the altering the sizes of both the list. SyntaxParametery: It is a list object of same type from which the content is to be transferred. pos: It defines the position where the elements of y are inserted. pos1: The element pointed by the pos1 is to be transferred. (first,last): It defines the range of the elements which are to be transferred. Return valueIt does not return any value. Example 1Let's see a simple example Output: 5 6 7 8 1 2 3 4 Example 2Let's see a simple example Output: 9 10 11 12 13 Example 3Let's see a simple example Output: java is a programming language Next Topicunique() Function |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India