The C++ language is a unique beast. It's used in a plethora of cases, varying from creating firmware and operating systems, desktop and mobile applications, to server software, frameworks, and services. C++ code runs on all kinds of hardware, is massively deployed on compute clouds, and can even be found in outer space. Such success wouldn't have been possible without the broad set of features this multi-paradigm language has.
This chapter describes how to leverage what the C++ language offers so that we can achieve safe and performant solutions. We will demonstrate the best industry practices for type safety, avoiding memory issues, and creating efficient code in an equally efficient manner. We will also teach you how to use certain language features when designing APIs.
In this chapter, we'll cover the following topics:
- Managing...