查询
最新公告

现代C++23快速入门专业版:包括变长参数模板、lambda表达式和异步IO(真EPUB)在内的高级编程。

English | 2024 | ISBN: B0DJ1VJKD4 | Pages: 348 | EPUB (True) | 130.66 KB

Learn the latest features of C++23 with Modern C++ 23 QuickStart Pro, the perfect book for experienced developers who want to expand their knowledge and skills. This book takes a hands-on approach, providing rapid learning through real-world examples and scenarios that address complex programming challenges in C++.

The book begins by demonstrating the power of variadic templates and how to use them for dynamic function signatures. After becoming familiar with fold expressions for argument handling, you will then explore std::tuple and std::variant for handling heterogeneous data. The book then covers advanced function morphing with parameter packs and shape-shifting lambdas, as well as dynamic programming techniques. It also teaches complex function overloading and high-level thread orchestration using futures, promises, and callables. Next, we'll go over some low-level IO operations, such as controlling IO streams, efficiently handling file descriptors, and directly manipulating files.

You will then learn how to optimize memory management with shared, unique, and weak pointers, and how to engineer memory performance with custom allocators and cache-aware programming. You will learn advanced synchronization, including atomic operations, mutexes, locks, and thread pools, as well as lock-free data structures for peak performance. In addition, this book covers optimal integer and floating-point operations, arbitrary precision arithmetic, precise rounding with fixed-point arithmetic, and high-performance computation using math constant integration.


学习C++23的最新特性,使用Modern C++ 23 QuickStart Pro这本书是经验丰富开发者扩充知识和技能的最佳选择。这本书采用实践导向的方法,通过现实生活中的例子和场景来解决复杂的编程挑战,提供快速的学习。 这本书首先展示了变参模板的强大功能以及如何利用它们实现动态函数签名。在熟悉了折叠表达式用于处理参数之后,你将探索如何使用std::tuple和std::variant来处理异构数据。接下来,本书还涵盖了许多高级的函数变形、参数包和形状改变的lambda表达式,并介绍了动态编程技巧。此外,它还教导读者如何通过使用future、promise和callable来进行复杂的函数重载以及高级级线程编排。 随后,我们将介绍一些低级I/O操作,包括控制IO流、高效处理文件描述符以及直接操纵文件。接着,你将学习如何通过共享指针、唯一指针和弱指针来优化内存管理,并利用自定义分配器和基于缓存的编程提高内存性能。 此外,本书还将介绍高级别的同步机制,如原子操作、互斥锁、锁以及线程池技术。同时,它还会教授无锁数据结构以实现最佳性能。最后,这本书还涵盖高级整数和浮点运算、任意精度算术、固定小数位法的精确四舍五入以及使用数学常量进行高性能计算等内容。
Download from free file storage


本站不对文件进行储存,仅提供文件链接,请自行下载,本站不对文件内容负责,请自行判断文件是否安全,如发现文件有侵权行为,请联系管理员删除。