top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Which is more exception safe, vector or list?

+4 votes
429 views
Which is more exception safe, vector or list?
posted Jan 24, 2014 by Merry

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Linked list is more exception safe as comparison to vector because in linked list pop_back, pop_front ,remove,insert,erase are exception safe( strong guarantee) while in vector insert and erase exception safe until copy constructor and assignment operator no throw exception means basic guarantee)

answer Oct 13, 2015 by anonymous
Similar Questions
+4 votes

Sorry for my philosophical Question, any thoughts :)
Hope it would not be deleted.

+1 vote

I wanted to ask what is the GCC C++ equivalent implementation of Windows _ MyFirst and _MyLast vector pointers?

These give direct access to the vectors first and last element, but they are not present in the GCC implementation of the vector class.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...