C++14 FAQs (Paperback)
暫譯: C++14 常見問題解答 (平裝本)

Chandra Shekhar Kumar

  • 出版商: CreateSpace Independ
  • 出版日期: 2014-06-19
  • 售價: $650
  • 貴賓價: 9.5$618
  • 語言: 英文
  • 頁數: 104
  • 裝訂: Paperback
  • ISBN: 1500239879
  • ISBN-13: 9781500239879
  • 相關分類: C++ 程式語言
  • 海外代購書籍(需單獨結帳)

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

商品描述

This book contains selected questions related to C++14 with detailed solutions to all of these which will help the reader to hone her skills to solve a particular problem.

Primary sources of this collection are:

  1. Advanced C++ FAQs: Volume 1 : Fundamentals
  2. Advanced C++ FAQs: Volume 2 : Generic Programming
  3. Advanced C++ FAQs: Volumes 1 & 2

This book is not an introduction to C++. It assumes that the reader is aware of the basics of C++98 and C++03 and wants to expand her horizon to latest and greatest in C++14(aka C++1y). The problems are marked on a scale of one(*)(simplest) to five stars(*****)(hardest). Forthcoming volumes will strengthen this particular approach spanning various areas of C++.
 

  • variable templates
  • Constexpr static data members of class templates
  • constexpr function templates
  • ....

  • static data member template
  • specialization of variable template
  • default argument and specialization of variable template
  • lambda and variable template
  • variable templates variables vary
  • auto variable templates
  • valid specialization but error ?
  • variable templates and lambda revisited
  • Incremental improvement to integral constant
  • is same musings
  • auto variable template and generic lambda
  • constexpr member functions and implicit const
  • ....

  • constexpr vs static vs uninitialized
  • constexpr vs member function revisited
  • deprecated attribute
  • Member initializers and aggregate class
  • ....

  • Data Member initializers
  • time duration literals
  • ...

  • Compile Time binary Literal Operator
  • Square Literal Operator
  • Type Transformation Aliases
  • unique ptr vs make unique as function argument
  • make unique as perfect forwarding guy
  • make unique and new
  • ....

  • make unique and default initialization with T[]
  • Extend make unique : Support list initialization T[]
  • Extend make unique : Value Initialize T[]
  • Extend make unique : T[N]
  • allocate unique
  • Compile-time integer sequences
  • Simplified Creation of std::integer sequence
  • std::index sequence
  • Custom Sequence : Addition
  • ....

  • Custom Sequence : Split
  • Extract from tuple
  • convert std::array to std::tuple
  • Piecewise construction of std::pair
  • Compile Time Integer Sequence Simplified
  • sfinae and represent type of function
  • metafunction : check presence of type member
  • std::common type and sfinae
  • Contextual Conversion
  • Single quotation mark as digit separator
  • Binary Literals
  • auto return type in function declaration
  • return type deduction for function
  • return type deduction for lambdas
  • ....

  • decltype(auto)
  • return type deduction for function templates
  • explicit instantiation and auto
  • return type deduction and virtual
  • deduce return type
  • generalized lambda capture
  • generic lambda and product vector
  • generic lambda
  • generic lambda definition
  • conversion function of generic lambda
  • generic lambda quiz
  • Preventing Name Hijacking
  • Find First Null Pointer in a Container
  • Generic Operator Functors
  • Exchange Utility
  • Addressing Tuple By Type
  • Quoted manipulators
  • Null Iterator
  • std::move is rvalue cast
  • C++14 Compiler

商品描述(中文翻譯)

這本書包含與 C++14 相關的選擇題,並提供所有問題的詳細解答,幫助讀者提升解決特定問題的技能。

本書的主要來源包括:

1. **Advanced C++ FAQs: Volume 1 : Fundamentals**
2. **Advanced C++ FAQs: Volume 2 : Generic Programming**
3. **Advanced C++ FAQs: Volumes 1 & 2**

本書並不是 C++ 的入門書籍。它假設讀者已經了解 C++98 和 C++03 的基礎知識,並希望擴展對 C++14(又稱 C++1y)的理解。問題的難度標記為一顆星(*)(最簡單)到五顆星(*****)(最困難)。未來的卷將加強這種涵蓋 C++ 各個領域的特定方法。

- 變數模板
- 類模板的 constexpr 靜態數據成員
- constexpr 函數模板
- ....
- 靜態數據成員模板
- 變數模板的特化
- 預設參數和變數模板的特化
- lambda 和變數模板
- 變數模板的變數變化
- auto 變數模板
- 有效的特化但出錯?
- 變數模板和 lambda 再探
- 對整數常數的增量改進
- is same 的思考
- auto 變數模板和通用 lambda
- constexpr 成員函數和隱式 const
- ....
- constexpr 與 static 與未初始化
- constexpr 與成員函數再探
- 廢棄屬性
- 成員初始化器和聚合類
- ....
- 數據成員初始化器
- 時間持續字面量
- ...
- 編譯時二進位字面量運算子
- 平方字面量運算子
- 類型轉換別名
- unique ptr 與 make unique 作為函數參數
- make unique 作為完美轉發者
- make unique 和 new
- ....
- make unique 和 T[] 的預設初始化
- 擴展 make unique:支持列表初始化 T[]
- 擴展 make unique:值初始化 T[]
- 擴展 make unique:T[N]
- 分配 unique
- 編譯時整數序列
- 簡化 std::integer sequence 的創建
- std::index sequence
- 自定義序列:加法
- ....
- 自定義序列:分割
- 從元組中提取
- 將 std::array 轉換為 std::tuple
- std::pair 的分段構造
- 編譯時整數序列簡化
- sfinae 和表示函數的類型
- 元函數:檢查類型成員的存在
- std::common type 和 sfinae
- 上下文轉換
- 單引號作為數字分隔符
- 二進位字面量
- 函數聲明中的 auto 返回類型
- 函數的返回類型推導
- lambda 的返回類型推導
- ....
- decltype(auto)
- 函數模板的返回類型推導
- 顯式實例化和 auto
- 返回類型推導和虛擬
- 推導返回類型
- 一般化 lambda 捕獲
- 通用 lambda 和產品向量
- 通用 lambda
- 通用 lambda 定義
- 通用 lambda 的轉換函數
- 通用 lambda 測驗
- 防止名稱劫持
- 在容器中查找第一個空指標
- 通用運算子函數
- 交換工具
- 按類型尋址元組
- 引號操控器
- 空迭代器
- std::move 是右值轉換
- C++14 編譯器