Modern C++ Programming Cookbook - Third Edition: Master modern C++ including the latest features of C++23 with 140+ practical recipes

Bancila, Marius

  • 出版商: Packt Publishing
  • 出版日期: 2024-02-29
  • 售價: $2,130
  • 貴賓價: 9.5$2,024
  • 語言: 英文
  • 頁數: 816
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1835080545
  • ISBN-13: 9781835080542
  • 相關分類: C++ 程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

Packed with practical recipes, explore the latest advancements in C++, optimize performance, and gain insights into essential techniques though 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.

 

It explores 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 standard 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.

商品描述(中文翻譯)

充滿實用食譜,探索C++的最新進展,優化性能,並通過這本全面指南獲得對基本技術的深入了解。

購買印刷版或Kindle書籍,將包含一本免費的PDF電子書。

主要特點:
- 不僅是C++23編程指南;在任何現代C++變體中找到超過150個編碼任務的正確解決方案
- 通過一系列實踐、獨立的食譜學習所有最重要的C++概念
- 完全更新,包含新主題;同步輸出流、標籤分派和C++20/23範圍適配器

書籍描述:
《現代C++編程食譜》第三版更新了C++23的最新功能,如堆疊庫、預期和mdspan類型、跨度緩衝區、格式化庫改進以及範圍庫的更新。它還涵蓋了之前未涉及的更多C++20主題,如同步輸出流和source_location。本書以實用食譜的形式組織,涵蓋了各種實際問題。

本書深入介紹了現代C++編程的所有核心概念,如函數和類、迭代器和算法、流和文件系統、線程和並發、智能指針和移動語義等。您將深入了解編程的性能方面,並學習通過最佳實踐寫出快速、精簡的代碼。

本書探討了許多常用模式和習慣用法的實現,包括pimpl、命名參數、律師-客戶和工廠模式。一章專門介紹了三個最廣泛使用的C++測試庫:Boost.Test、Google Test和Catch2。

通過閱讀本書,您將能夠有效利用C++11/14/17/20/23編程的功能和技術,提升應用程序的性能、可擴展性和效率。

學到什麼:
- 探索新的C++23語言和庫功能
- 熟練使用標準支持的線程和並發處理日常任務
- 利用標準庫,使用容器、算法和迭代器
- 使用正則表達式解決文本搜索和替換問題
- 使用不同類型的字符串,學習編譯的各個方面
- 利用文件系統庫處理文件和目錄
- 實現各種有用的模式和習慣用法
- 探索廣泛使用的C++測試框架

本書適合對C++編程語言有基礎理解的初級和中級程序員,希望掌握該語言並成為熟練的現代C++開發人員。有經驗的C++程序員可以利用本書加強對C++的掌握,並找到C++11/14/17/20/23的許多語言和庫功能的良好參考。