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 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
question
Computers and Technology, 24.06.2019 07:20
Ingrid started speaking about her slide presentation. when she clicked to th"third slide, which had just a picture of an elephant, she forgot what she wassupposed to talk about. what could ingrid do to avoid this situation in thefuture? oa. print handouts for her audience.ob. add presenter's notes to each slide.oc. add a video to each slide.od. save her slide presentation to a flash drive
Answers: 2
question
Computers and Technology, 24.06.2019 15:00
In excel, what happens to the cell contents when you click and drag a cell into multiple cells?
Answers: 1
You know the right answer?
We discussed that the C++ Standard Library specifies a small collection of exception guarantees, and...
Questions
question
History, 30.11.2021 19:30
Questions on the website: 13722362