C++ packs several features which makes moving big objects easier. The challenge is to write a function to move a big object efficiently.
- [Instructor] Are you ready for one more challenge?…This time create your own resource that demos RAII.…It should have a constructor and a destructor.…Its constructor should accept one parameter,…an integer, the resource ID.…During construction and destruction,…display the resource ID to the console.…Be sure to test your code with no exceptions…and with an exception.…Give yourself five or 10 minutes to complete this challenge.…
Author
Released
12/6/2018- Major new C++ features
- Turning on modern C++
- Letting the compiler help
- Using the new features correctly
- Using auto type deduction
- Using lambdas
- Range-based for loops
- How C++ and the Standard Template Library name things
- Making the best of the filesystem library
- Managing objects
Skill Level Beginner
Duration
Views
Related Courses
-
C++ Standard Template Library
with Eduardo Corpeño2h 23m Advanced -
C++ IDE Overview
with Troy Miles2h 33m Beginner -
Learning C++
with Erin Colvin2h 26m Beginner -
Nail Your C++ Interview
with Erin Colvin1h 2m Beginner
-
Introduction
-
1. What Is Modern C++?
-
New C++ features56s
-
Old code compatibility1m 1s
-
-
2. Tools That Improve Your Code
-
Let the compiler help1m 4s
-
Static analyzers1m 3s
-
Cppcheck4m 40s
-
3. Using the New Features Correctly
-
Range-based for loops1m 45s
-
Strongly typed enums1m 58s
-
Using lambdas2m 39s
-
4. Don't Reinvent the Wheel
-
Map, filter, and reduce4m 30s
-
size_t and auto2m 38s
-
The filesystem library4m 15s
-
5. Managing Objects
-
Challenge: RAII31s
-
Solution: RAII2m 6s
-
Conclusion
-
Next steps42s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Challenge: RAII