Type-Safe Interfaces with Modern C++ [Video]
- FREE Subscription Access now
- $10.00 Was 124.99 Video Buy
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
About this video
In this course we’ll learn how to write correct, safe, and performant code by making use of C++’s type system. Firstly, we’ll learn about the Standard Library’s “algebraic data types” and how they can increase safety, performance, and readability of your application/library. We’ll then look at function interfaces. As an example, writing a function that takes a string in such a way that it performs optimally with both std::string and const char* seems like a daunting task. It gets even more tricky with functions taking other functions as input. Is it possible to generalize these issues and provide the “perfect” interface?
Style and Approach
This video course carefully guides the audience through an overview of the new C++17 language and library features, providing realistic usage examples. Implementations of novel utilities are also explained in a step-by-step fashion.
- Publication date:
- June 2018
- Publisher
- Packt
- Duration
- 2 hours 13 minutes
- ISBN
- 9781788621960