Advanced C++ FAQs: Volumes 1 & 2
暫譯: 進階 C++ 常見問題解答:第一卷與第二卷

Chandra Shekhar Kumar

  • 出版商: CreateSpace Independ
  • 出版日期: 2014-06-18
  • 售價: $1,360
  • 貴賓價: 9.5$1,292
  • 語言: 英文
  • 頁數: 392
  • 裝訂: Paperback
  • ISBN: 1500228125
  • ISBN-13: 9781500228125
  • 相關分類: C++ 程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

This book is a combination of the following two books :
  1. Advanced C++ FAQs: Volume 1 : Fundamentals
  2. Advanced C++ FAQs: Volume 2 : Generic Programming


  3. Advanced C++ FAQs: Volume 1 : Fundamentals
    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 is keen to expand her horizon to latest and greatest in the present and future of C++, including C++11 and C++1y(aka C++14). It contains selected fundamental problems with detailed solutions to all of these which will help the reader to hone her skills to solve a particular problem.

    Advanced C++ FAQs: Volume 2 : Generic Programming
    This book is sequel to the first volume Advanced C++ FAQs : Volume 1 : Fundamentals. It contains selected generic programming problems with detailed solutions.

    1. Algorithms
    2. 1.1 Efficient Insertion in Vector
      1.2 reverse algorithm for forward iterators
      ...
      1.4 swapping unequal sections
      1.5 rotate algorithm
      ...
      1.9 Avoid Raw Loops
      ...
      1.13 better algorithm than std::rotate
      ...
      1.16 reverse algorithm dispatch
      1.17 Efficient Algorithm for reverse
      ...
      1.21 is partitioned algorithm
      1.22 Bisection Algorithm
      ...
      1.25 advance and next
      1.26 custom iota
      ...
    3. Utilities
    4. 2.1 std::move is rvalue cast
      2.2 std::move if noexcept
      2.3 std::forward
      ...
      2.6 is same

    5. Templates
    6. 3.1 alias template
      3.2 template parameter pack
      3.3 override virtual and template
      ...


    7. Classes
    8. Namespaces
    9. Type Specifiers
    10. Constant Expression
    11. C++14
    12. ...
      8.4 auto return type in function declaration
      ...
      8.6 return type deduction for lambdas
      8.7 decltype(auto)
      ...
      8.9 explicit instantiation and auto
      8.10 return type deduction and virtual
      ...
      8.12 generalized lambda capture
      8.13 generic lambda and product vector
      ...
    13. Miscellaneous
    14. More C++14
    15. 10.1 variable templates
      ...
      10.5 static data member template
      ...
      10.7 default argument and specialization of variable template 10.8 lambda and variable template
      ...
      10.15 auto variable template and generic lambda
      10.16 constexpr member functions and implicit const
      10.17 constexpr constructor and initialization
      ...
      10.23 deprecated attribute
      10.24 Member initializers and aggregate class
      ...
      10.31 Type Transformation Aliases
      ...
      10.33 make unique as perfect forwarding guy
      ...
      10.37 make unique and default initialization
      10.38 make unique and array T[n]
      ...
      10.43 Extend make unique : T[N]
      10.44 allocate unique
      10.45 Compile-time integer sequences
      ...
      10.47 std::index sequence
      10.48 Custom Sequence : Addition
      ...
      10.55 sfinae and represent type of function
      10.56 metafunction : check presence of type member
      10.57 std::common type and sfinae


    16. Foundation
    17. 11.1 private cast
      11.2 Value Type Deduction Framework
      ...
      11.5 Template Alias and Rebind Template
      11.6 Template Alias and Non Deducible Context
      ...
      11.8 Template Alias and Specialization
      ...
      11.13 std::copy backward
      ...
      11.18 iota n : iota for writing n items
      11.19 Reverse iota
      ...
      11.24 Preventing Name Hijacking
      ...
      11.29 Move Constructor and unique pointer
      11.30 Find First Null Pointer in a Container
      11.31 Average of variable number of arguments
      ....
      11.33 Exchange Utility
      11.34 Addressing Tuple By Type
      11.35 Quoted manipulators
      11.36 Null Iterator

商品描述(中文翻譯)

這本書是以下兩本書的結合:


  1. 進階 C++ 常見問題解答:第一卷:基礎

  2. 進階 C++ 常見問題解答:第二卷:泛型程式設計

進階 C++ 常見問題解答:第一卷:基礎

這本書並不是 C++ 的入門書。它假設讀者已經了解 C++98 和 C++03 的基礎知識,並渴望擴展對 C++ 的最新和未來發展的視野,包括 C++11 和 C++1y(即 C++14)。書中包含選定的基礎問題及其詳細解決方案,這將幫助讀者磨練解決特定問題的技能。



進階 C++ 常見問題解答:第二卷:泛型程式設計

這本書是第一卷進階 C++ 常見問題解答:第一卷:基礎的續集。它包含選定的泛型程式設計問題及其詳細解決方案。




  1. 演算法

  2. 1.1 向量中的高效插入

    1.2 針對前向迭代器的反轉演算法

    ...

    1.4 交換不等區段

    1.5 旋轉演算法

    ...

    1.9 避免原始迴圈

    ...

    1.13 比 std::rotate 更好的演算法

    ...

    1.16 反轉演算法調度

    1.17 反轉的高效演算法

    ...

    1.21 是否為分區演算法

    1.22 二分法演算法

    ...

    1.25 advance 和 next

    1.26 自定義 iota

    ...

  3. 工具

  4. 2.1 std::move 是右值轉換

    2.2 std::move 如果 noexcept

    2.3 std::forward

    ...

    2.6 是否相同


  5. 模板

  6. 3.1 別名模板

    3.2 模板參數包

    3.3 覆寫虛擬和模板

    ...


  7. 類別

  8. 命名空間

  9. 類型說明符

  10. 常量表達式

  11. C++14

  12. ...

    8.4 函數聲明中的自動返回類型

    ...

    8.6 對於 lambda 的返回類型推導

    8.7 decltype(auto)

    ...

    8.9 顯式實例化和自動

    8.10 返回類型推導和虛擬

    ...

    8.12 一般化的 lambda 捕獲

    8.13 泛型 lambda 和產品向量

    ...

  13. 其他

  14. 更多 C++14

  15. 10.1 變數模板

    ...

    10.5 靜態數據成員模板

    ...

    10.7 預設參數和變數模板的特化

    10.8 lambda 和變數模板

    ...

    10.15 自動變數模板和泛型 lambda

    10.16 constexpr 成員函數和隱式 const

    10.17 constexpr 構造函數和初始化

    ...

    10.23 廢棄屬性

    10.24 成員初始化器和聚合類

    ...

    10.31 類型轉換別名

    ...

    10.33 make unique 作為完美轉發者

    ...

    10.37 make unique 和預設初始化

    10.38 make unique 和陣列 T[n]

    ...

    10.43 擴展 make unique:T[N]

    10.44 分配唯一

    10.45 編譯時整數序列

    ...

    10.47 std::index_sequence

    10.48 自定義序列:加法

    ...

    10.55 sfinae 和表示函數的類型

    10.56 元函數:檢查類型成員的存在

    10.57 std::common_type 和 sfinae


  16. 基礎

  17. 11.1 私有轉換

    11.2 值類型推導框架

    ...

    11.5 模板別名和重新綁定模板

    11.6 模板別名和不可推導上下文

    ...

    11.8 模板別名和特化

    ...

    11.13 std::copy_backward

    ...

    11.18 iota n:為寫入 n 個項目而設的 iota

    11.19 反向 iota

    ...

    11.24 防止名稱劫持

    ...

    11.29 移動構造函數和唯一指標

    11.30 在容器中查找第一個空指標

    11.31 可變數量參數的平均值

    ....

    11.33 交換工具

    11.34 按類型尋址元組

    11.35 引號操控器

    11.36 空迭代器