COMPTNG 10A Final: Misc 2

45 views1 pages
14 Sep 2017
School
Professor

Document Summary

A type for an unsigned int (nonnegative) No need to know what it is and why it is useful represents an index std::swap(firstvar, secondvar); Works for any types, even user-defined classes class template. Provides type within < > const correctness. Make things const to ensure they are not changed. Not all member functions should be const (be logical) Ndebug i(cid:374)(cid:272)lude: (cid:862)#defi(cid:374)e ndebug(cid:863) i(cid:374) the top to disa(cid:271)le asserts that (cid:373)ay stop the progra(cid:373) However, will not remove code surrounding asserts that are now remove.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents