Modern C++ Programming Cookbook
eBook - ePub

Modern C++ Programming Cookbook

Master modern C++ including the latest features of C++23 with 140+ practical recipes

  1. 816 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Modern C++ Programming Cookbook

Master modern C++ including the latest features of C++23 with 140+ practical recipes

About this book

Packed with practical recipes, explore the latest advancements in C++, optimize performance, and gain insights into essential techniques through this comprehensive guide.Purchase of the print or Kindle book includes a free eBook in PDF format.

Key Features

  • Not just a guide to C++23 programming; find the right solution to over 150 coding tasks in any modern variant of C++
  • Learn all the most important C++ concepts through a series of hands-on, self-contained recipes
  • Fully-updated and packed with new topics including; sync output streams, tag dispatching, and C++20/23 range adaptors

Book Description

The updated third edition of Modern C++ Programming Cookbook addresses the latest features of C++23, such as the stack library, the expected and mdspan types, span buffers, formatting library improvements, and updates to the ranges library. It also gets into more C++20 topics not previously covered, such as sync output streams and source_location. The book is organized in the form of practical recipes covering a wide range of real-world problems.It gets into the details of all the core concepts of modern C++ programming, such as functions and classes, iterators and algorithms, streams and the file system, threading and concurrency, smart pointers and move semantics, and many others. You will cover the performance aspects of programming in depth, and learn to write fast and lean code with the help of best practices.You will explore useful patterns and the implementation of many idioms, including pimpl, named parameter, attorney-client, and the factory pattern. A chapter dedicated to unit testing introduces you to three of the most widely used libraries for C++: Boost.Test, Google Test, and Catch2.By the end of this modern C++ programming book, you will be able to effectively leverage the features and techniques of C++11/14/17/20/23 programming to enhance the performance, scalability, and efficiency of your applications.

What you will learn

  • Explore the new C++23 language and library features
  • Become skilled at using the built-in support for threading and concurrency for daily tasks
  • Leverage the standard library and work with containers, algorithms, and iterators
  • Solve text searching and replacement problems using regular expressions
  • Work with different types of strings and learn the various aspects of compilation
  • Take advantage of the file system library to work with files and directories
  • Implement various useful patterns and idioms
  • Explore the widely used testing frameworks for C++

Who this book is for

The book is designed for entry- and intermediate-level programmers with a foundational understanding of the C++ programming language looking to master the language and evolve into proficient modern C++ developers. Experienced C++ programmers can leverage this book to strengthen their command of C++ and find a good reference to many language and library features of C++11/14/17/20/23.

]]>

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Modern C++ Programming Cookbook by Marius Bancila in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in C++. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Preface
  2. Learning Modern Core Language Features
  3. Working with Numbers and Strings
  4. Exploring Functions
  5. Preprocessing and Compilation
  6. Standard Library Containers, Algorithms, and Iterators
  7. General-Purpose Utilities
  8. Working with Files and Streams
  9. Leveraging Threading and Concurrency
  10. Robustness and Performance
  11. Implementing Patterns and Idioms
  12. Exploring Testing Frameworks
  13. C++ 20 Core Features
  14. Other Books You May Enjoy
  15. Index