cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
List of exceptions thrown by STL contain
List of exceptions thrown by STL container and iterator function calls
Apr 18, 2009 at 10:21am UTC
manojguptam
(1)
Hello,
I want to know if the clear() function from vector container can throw any exceptions. Also can anyone provide a weblink or book reference which contains a list of exceptions thrown by function calls on STL containers and iterators.
Thanks,
Mann
Apr 18, 2009 at 4:00pm UTC
PanGalactic
(1658)
std::vector::clear() will only throw if the objects in the vector throw in their destructors (very bad form).
The site I rely on most for information about the STL is
http://www.sgi.com/tech/stl/.
It is the most readable reference of the STL I have found.
Topic archived. No new replies allowed.