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, 21.06.2019 22:00
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
Which feature of a blog to restore and retrieve older post
Answers: 3
You know the right answer?
We discussed that the C++ Standard Library specifies a small collection of exception guarantees, and...
Questions