A
Aarti
I was reading about exception safety in vectors and came across a
staement that says
The clear operation of vector guarantees a nothrow provided the copy
and assignment operator do not throw an exception.
Now clear just deletes all the elements of a vector. What has copy
and assignment operator got to do with it?
Can anyone please shed some light.
Regards
staement that says
The clear operation of vector guarantees a nothrow provided the copy
and assignment operator do not throw an exception.
Now clear just deletes all the elements of a vector. What has copy
and assignment operator got to do with it?
Can anyone please shed some light.
Regards