Book Image

Mastering C++ Standard Library Features [Video]

By : Vittorio Romeo
1 (1)
Book Image

Mastering C++ Standard Library Features [Video]

1 (1)
By: Vittorio Romeo

Overview of this book

C++ has come a long way and has now been adopted in several contexts with the latest updates of the STL and with C++17 on its way. This video course will take you through C++'s Standard library, some of the most important features of C++11/14/17. You will begin with new language features, gradually move on to library components and then move to the traps , and pitfalls and ways to avoid them. You will learn about STL components such as <utility>, smart pointers, `std::function`, `std::move`, and `std::exchange`. At the same time reinforce and deepen your understanding of the new language features. From here, you will learn to examine containers, iterators, function objects, with STL algorithms and lambda expressions. You will also be introduced to some upcoming C++17 additions including language features such as `constexpr` lambdas, and library additions such as the new algebraic data types and metaprogramming utilities. Throughout the course, you will learn the common pitfalls in "old" C++ programming and best practices for software development in Modern C++. By the end of the course, you will have mastered Modern C++'s most impactful language and library features.
Table of Contents (8 chapters)
Chapter 6
Mastering Lambdas
Content Locked
Section 3
Safer Interfaces with Higher-Order Functions
Through realistic examples, understand how higher-order functions can be used to create safer and easier interfaces for your users - Use higher-order functions for thread safety - Use higher-order functions to prevent undefined behavior - Use higher-order functions to avoid initialization steps