Query about STL member function

10 views
Skip to first unread message

Itban Saeed Usmani

unread,
May 12, 2013, 2:39:32 AM5/12/13
to cs1003-s...@googlegroups.com
A.O.A.
list1.swap(List2)
The swap member function swaps the elements stored in two
lists. For example, assuming list1 and list2 are lists, the
statement shown above will exchange the values in the two
What will happen if size of list1>size of list2 or 
size of list2>size of list1?

Regards,
Itban Saeed Usmani 

Sami Ullah Kashif

unread,
May 12, 2013, 6:21:02 AM5/12/13
to cs1003-s...@googlegroups.com
Walaikum Assalam
                            I think this function will take care of these issues, you don't need to worry about them.

Regards,
Sami
Reply all
Reply to author
Forward
0 new messages