C++ Cookbook
eBook - ePub

C++ Cookbook

How to write great code with the latest C++ releases (English Edition)

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

C++ Cookbook

How to write great code with the latest C++ releases (English Edition)

About this book

Getting up to speed with the latest C++ features

Key Features
? Learning about the newest features of C++23 and C++20.
? Understanding how to make your code cleaner, faster, and easier.
? Enhancing the safety, readability, and performance of your code.

Description
C++ continues to remain relevant despite the advent of many new modern languages. This book dives into the significant features of C++20 ("big four") and C++23, addressing challenges and improving development. You will learn how to write cleaner, more efficient, and safer code. From organizing your projects better to handling complex tasks easily, this guide equips you to take your C++ skills to the next level.We start by discussing basic concepts and learning how to use them in templates. Then, we explore advanced topics like asynchronous programming with coroutines and tools for handling multiple tasks at once. You will discover C++ modules for building modular applications to organize code better. You will learn about ranges for processing data sequences efficiently, including views and adaptors for transforming and filtering data. Further, you will explore new features for containers, cleaner coding practices, and performance optimizations in C++20/23.The most challenging yet intriguing part about C++ is that it has evolved over the decades. Due to these changes, you will often find different ways of doing the same thing. The book describes the latest features in detail. It shows how you can do your job in the best manner, by implementing these features in the latest, fastest, cleanest, and safest way.

What you will learn
? Coroutines to create code that handles asynchronous tasks seamlessly.
? Process sequences of data efficiently using ranges and range-based for loops.
? Utilize improvements and new functionalities for existing containers like vector, list, map, and set.
? New features like improved range adaptors, functional programming constructs, and lambda enhancements.
? User-defined literals, filesystem library enhancements, and type safety features offered by concepts.

Who this book is for
This book empowers C++ programmers, from experienced professionals to those looking to level up their skills, by teaching the latest features for writing cleaner, more efficient, and powerful C++ code.

Table of Contents
1. Working with Concepts
2. Using the New Core Language Concepts
3. Using the New Comparison Concepts
4. Using the New Iterator Concepts
5. Using the New Object Concepts
6. Using the New Callable Concepts
7. Const Related Specifiers
8. Concurrent Processing
9. Coroutines
10. Organizing Your Code with Modules
11. Introduction to Ranges and Views
12. Range Access and Non-Modifying Sequence Functions for Ranges
13. Range Algorithms: Sort, Search and More
14. Range Algorithms: Memory and Modification Functions
15. Views and Range Adaptors
16. Range Factories and Utilities
17. New Features for Containers
18. Making it Easier to Code
19. Making Your Code Cleaner
20. Making Your Code Safer
21. Making Your Code Faster and Easier to Debug

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.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. 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 C++ Cookbook by Wayne Murphy 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. Cover
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. About the Reviewers
  7. Acknowledgement
  8. Preface
  9. Table of Contents
  10. 1. Working with Concepts
  11. 2. Using the New Core Language Concepts
  12. 3. Using the New Comparison Concepts
  13. 4. Using the New Iterator Concepts
  14. 5. Using the New Object Concepts
  15. 6. Using the New Callable Concepts
  16. 7. Const Related Specifiers
  17. 8. Concurrent Processing
  18. 9. Coroutines
  19. 10. Organizing Your Code with Modules
  20. 11. Introduction to Ranges and Views
  21. 12. Range Access and Non-Modifying Sequence Functions for Ranges
  22. 13. Range Algorithms: Sort, Search and More
  23. 14. Range Algorithms: Memory and Modification Functions
  24. 15. Views and Range Adaptors
  25. 16. Range Factories and Utilities
  26. 17. New Features for Containers
  27. 18. Making it Easier to Code
  28. 19. Making Your Code Cleaner
  29. 20. Making Your Code Safer
  30. 21. Making Your Code Faster and Easier to Debug
  31. Index