C++17 Quick Syntax Reference: A Pocket Guide to the Language, APIs and Library
暫譯: C++17 快速語法參考:語言、API 和函式庫的口袋指南

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++17。它以良好組織的格式呈現了基本的 C++ 語法,可作為方便的參考資料。

在《C++17 快速語法參考》中,您將找到簡短、簡單且專注的代碼範例。本書包含了良好排版的目錄和全面的索引,方便查閱。您不會在這本書中找到任何技術術語、冗長的範例、拖沓的歷史課程或機智的故事。您會發現的是一本簡潔、切中要點且易於理解的語言參考書。本書內容豐富,是任何 C++ 程式設計師的必備之選。

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

本書適合對象:
經驗豐富的 C++ 程式設計師。此外,這也是一本簡潔、易於消化的入門書,適合其他新接觸 C++ 的程式設計師。

最後瀏覽商品 (20)