Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.
QUESTION
C++ Need Comments / FormattingOutcomedoublevector() and ~doublevector()Properly sets pointer to nullptr and mNumValues to 0. Outcome.at() and .at() constUses the given code for index checking--return
C++
- Need Comments / FormattingOutcomedoublevector() and ~doublevector()Properly sets pointer to nullptr and mNumValues to 0.
- Outcome.at() and .at() constUses the given code for index checking--returns the correct element based on the index.
- Outcomepush_back()Calls resize().
- Outcomeresize()Properly handles when new_size = 0, new_size > current_size, and new_size < current_size.
- OutcomePointersNo dangling pointers and no memory leaks are apparent.
- OutcomeEfficiency / Other
Files:
needhelp111.docx