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, 23.06.2019 09:30
You have been supporting csm tech publishing's windows server 2016 server network for over a year. the office has two windows server 2016 servers running active directory and a number of other roles. management has informed you that a small sales office is opening in the same building three floors up. the sales manager wants to install a sales application on a server located in the sales office. this server will have limited physical security because there's no special room dedicated for it, which means it will be accessible to non-it personnel and visitors. you're considering installing windows server 2016 server core on the new server because accessing its console regularly probably won't be necessary, and this server will be managed from one of the other csm tech publishing servers. what are the benefits and drawbacks of using server core for this branch office? what are some things you should do to set up this server management environment?
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
The most accurate readings that you can take on an analog vom are when the meter's pointer is at the a. center scale. b. extreme right. c. near right. d. extreme left.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which task uses a simple parameter?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What shows the web address of the page that is currently displayed in the workspace? status window toolbar location bar internet box
Answers: 1
You know the right answer?
We discussed that the C++ Standard Library specifies a small collection of exception guarantees, and...
Questions
question
Health, 28.01.2020 16:02
question
Mathematics, 28.01.2020 16:02
Questions on the website: 13722363