C++20 Quick Syntax Reference: A Pocket Guide to the Language, Apis, and Library
暫譯: C++20 快速語法參考:語言、API 與函式庫的口袋指南
Olsson, Mikael
商品描述
This quick C++ 20 guide is a condensed code and syntax reference to the popular programming language, fully updated for C++20. It presents the essential C++20 code syntax in a well-organized format that can be used as a handy reference.
This edition covers topics including designated initializers, lambdas and lambda captures, the spaceship operator, pack expressions, string literals as template parameters, atomic smart pointers, and contracts. It also covers library changes including extended futures, latches and barriers, task blocks, and text formatting.
In the C++20 Quick Syntax Reference, you will find short, simple, and focused code examples. This book includes a well-laid-out table of contents and a comprehensive index allowing for easy review. You won't find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point, and highly accessible. The book is packed with useful information and is a must-have for any C++ programmer.
What You'll Learn
- Discover the key C++20 features
- Work with concepts, feature test macros, bit-casting, conditional explicit modifiers, constexpr virtual functions, ranges, concept terse syntax, constexpr libs, and the revised memory model Use coroutines, modules, improved structured bindings, and more
- Take advantage of transactional memory
Who This Book Is For
Experienced C++ programmers. Additionally, this is a concise, easily-digested introduction for other programmers new to C++.
商品描述(中文翻譯)
這本快速的 C++ 20 指南是針對這個流行程式語言的精簡代碼和語法參考,已全面更新至 C++20。它以良好組織的格式呈現了基本的 C++20 代碼語法,可作為方便的參考資料。
本版本涵蓋的主題包括指定初始化器、lambda 表達式及其捕獲、太空船運算子、包表達式、作為模板參數的字串字面量、原子智能指標以及合約。它還涵蓋了庫的變更,包括擴展的 futures、鎖存器和障礙、任務區塊以及文本格式化。
在《C++20 快速語法參考》中,您將找到簡短、簡單且專注的代碼範例。本書包含一個精心編排的目錄和一個全面的索引,方便讀者快速查閱。您不會在這本書中找到任何技術術語、冗長的範例、拖沓的歷史課程或機智的故事。您會發現的是一本簡潔、切中要點且高度可讀的語言參考書。這本書充滿了有用的信息,是任何 C++ 程式設計師的必備之選。
您將學到的內容:
- 探索 C++20 的關鍵特性
- 使用概念、特性測試宏、位元轉換、條件顯式修飾符、constexpr 虛擬函數、範圍、概念簡潔語法、constexpr 函式庫以及修訂的記憶體模型
- 使用協程、模組、改進的結構綁定等
- 利用事務性記憶體
本書適合的讀者:
經驗豐富的 C++ 程式設計師。此外,這也是一本簡潔、易於消化的 C++ 入門介紹,適合其他新接觸 C++ 的程式設計師。
作者簡介
作者簡介(中文翻譯)
米卡埃爾·奧爾松(Mikael Olsson)是一位專業的網路企業家、程式設計師和作家。他在芬蘭的一家研發公司工作,專注於軟體開發。在空閒時間,他撰寫書籍並創建網站,總結各種感興趣的領域。他所寫的書籍專注於以最有效的方式教授主題,僅解釋相關和實用的內容,避免不必要的重複或理論。