subject

We discussed that the C++ Standard Library specifies a small collection of exception guarantees, and that some guarantees are stronger than others. Suppose you were implementing an ArrayList class template, similar to the one we implemented in lecture, but one that was more full-featured that ours β€” now that we know more C++, we can design better types. While implementing it, you would need to consider the exception safety guarantees of each of its member functions. Give an example of a member function (outside of the Big Three) that you might write in your class template where the nothrow guarantee would be inappropriate, but the strong guarantee would be appropriate. Why would the nothrow guarantee be an inappropriate choice in your example? Give an example of a member function (outside of the Big Three) that you might write in your class template where the strong guarantee would be inappropriate, but the basic guarantee would be appropriate. Why would the strong guarantee be an inappropriate choice in your example?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
What is the process in which the software development team compiles information to determine the final product.
Answers: 3
question
Computers and Technology, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
We discussed that the C++ Standard Library specifies a small collection of exception guarantees, and...
Questions
question
Mathematics, 25.06.2019 14:00
question
Mathematics, 25.06.2019 14:00
question
Social Studies, 25.06.2019 14:00
Questions on the website: 13722363