Strings are one of the things that C++ programmers love to complain about. With the introduction string_view, it was hoped that C++ would finally have a great string class. But there are some problems with string_view that Troy makes clear.
- [Instructor] String_view is a non-owning…reference to a string.…It represents a view of a sequence of characters,…either C++ strings or C strings.…It is the non-owning part that can get you into trouble.…The string views should not live longer…than its source string.…It also may not be NULL terminated,…so us care when using it…with C-style functions, like printf.…But, it may offer a big performance boost,…since it doesn't actually have to do much copying,…it's just a reference to some screens,…and that gives it a speed-up throughout the code.…
- 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.