Writing file system code becomes a lot easier and cleaner with the new
- [Instructor] The C plus plus standard library file system…is adopted from the boost library's file system.…This finally gives C plus plus a portable file system.…Unfortunately, support for it at the time…of recording is very problematic,…so lets play with the boost library instead.…They are very similar.…So right here notice that we're bringing in…the boost file system.…And like I said it is very similar,…essentially it's just going to be getting rid…of the word boost forward slash and then it'll be…the standards library's version of it.…
First thing that we do is we create a name space…for boost, colon, colon, file system and…we're just going to call that FS,…our very first function is read dir.…This is going to read a directory.…And what I'm doing here is I'm getting the arg C…and the arg V commands from the main function and…I'm passing it on to here and we're going to do…a check to see if arg C is greater than one.…We are to get arg V of one and initialize P to it.…Otherwise, we're going to make a P be the period…
- 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
1. What Is Modern C++?
2. Tools That Improve Your Code
3. Using the New Features Correctly
4. Don't Reinvent the Wheel
5. Managing Objects
- 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.Cancel
Take 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.