C++17 Quick Syntax Reference: A Pocket Guide to the Language, APIs and Library

Mikael Olsson

買這商品的人也買了...

商品描述

This quick C++17 guide is a condensed code and syntax reference to the popular programming language, fully updated for C++17. It presents the essential C++ syntax in a well-organized format that can be used as a handy reference.
 
In the C++17 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
  • Use template argument deduction for class templates
  • Declare non-type template parameters with auto-folding expressions and auto deduction from braced-init-list
  • Apply lambdas and lambda capture by value
  • Work with inline variables, nested namespaces, structured bindings, and selection statements with initializer
  • Use utf-8 character literals
  • Carry out direct-list initialization of enums
  • Use these new C++17 library features or class templates from std::variant, optional, any, string_view, invoke, apply and more
  • Do splicing for maps and sets, also new to C++17
Who This Book Is For
 
Experienced C++ programmers. Additionally, this is a concise, easily-digested introduction for other programmers new to C++.
 

商品描述(中文翻譯)

這本《C++17 快速語法參考指南》是一本簡明的程式碼和語法參考書,針對流行的程式語言 C++ 进行了全面更新,以簡潔有序的格式呈現了基本的 C++ 語法,可作為方便的參考工具。

在《C++17 快速語法參考指南》中,您將找到簡短、簡單且重點突出的程式碼範例。本書包含了清晰的目錄和全面的索引,方便閱讀和查詢。本書不會包含任何技術術語、冗長的範例、冗長的歷史課程或風趣的故事。您將找到一本簡潔、直接且易於理解的語言參考書。本書充滿了有用的信息,是任何 C++ 程式設計師必備的工具。

您將學到以下內容:
- 使用類模板的模板參數推導
- 使用自動折疊表達式和大括號初始化列表的自動推導聲明非類型模板參數
- 使用 lambda 函式和按值捕獲
- 使用內聯變數、嵌套命名空間、結構化綁定和帶初始化器的選擇語句
- 使用 UTF-8 字符字面量
- 進行枚舉的直接列表初始化
- 使用 C++17 中的新庫特性或從 std::variant、optional、any、string_view、invoke、apply 等類模板中使用
- 在 C++17 中對映射和集合進行拼接

本書適合有經驗的 C++ 程式設計師閱讀。此外,對於其他初學 C++ 的程式設計師來說,這是一本簡明易懂的入門書。