وبلاگ بلیان

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

جلد کتاب C++17 Quick Syntax Reference : A Pocket Guide to the Language, APIs and Library

معرفی کتاب «C++17 Quick Syntax Reference : A Pocket Guide to the Language, APIs and Library» نوشتهٔ Olsson, Mikael، منتشرشده توسط نشر Apress Springer Science + Business Media در سال 2018. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

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++. Table of Contents......Page 4 About the Author......Page 13 About the Technical Reviewer......Page 14 Introduction......Page 15 Creating a Project......Page 17 Hello World......Page 18 IntelliSense......Page 20 Visual Studio Compilation......Page 21 Comments......Page 22 Data Types......Page 24 Assigning Variables......Page 25 Variable Scope......Page 26 Integer Types......Page 27 Signed and Unsigned Integers......Page 28 Numeric Literals......Page 29 Floating-Point Types......Page 30 Char Type......Page 31 Bool Type......Page 32 Arithmetic Operators......Page 33 Increment and Decrement Operators......Page 34 Logical Operators......Page 35 Operator Precedence......Page 36 Dereferencing Pointers......Page 38 Pointing to a Pointer......Page 39 Dynamic Allocation......Page 40 Null Pointer......Page 41 Creating References......Page 43 Rvalue Reference......Page 44 Array Assignment......Page 46 Dynamic Arrays......Page 47 Array Size......Page 48 String Combining......Page 49 Escape Characters......Page 50 String Compare......Page 51 String Encodings......Page 52 If Statement......Page 54 Switch Statement......Page 55 Initializers......Page 56 Do-while Loop......Page 58 For Loop......Page 59 Goto Statement......Page 60 Calling Functions......Page 61 Default Parameter Values......Page 62 Return Statement......Page 63 Pass by Value......Page 64 Pass by Reference......Page 65 Return by Value, Reference, or Address......Page 66 Inline Functions......Page 67 Auto and Decltype......Page 68 Returning Multiple Values......Page 70 Lambda Functions......Page 72 Class Methods......Page 76 Object Creation......Page 77 Accessing Object Members......Page 78 Forward Declaration......Page 79 Chapter 13: Constructors......Page 80 Constructor Overloading......Page 81 Field Initialization......Page 82 Destructor......Page 83 Special Member Functions......Page 84 Value Initialization......Page 85 Copy Initialization......Page 86 Uniform Initialization......Page 87 Upcasting......Page 90 Downcasting......Page 91 Constructor Inheritance......Page 92 Multiple Inheritance......Page 93 Hiding Derived Members......Page 95 Overriding Derived Members......Page 96 Base Class Scoping......Page 98 Private Access......Page 99 Protected Access......Page 100 Friend Classes and Functions......Page 101 Public, Protected, and Private Inheritance......Page 103 Static Fields......Page 104 Static Methods......Page 105 Static Global Variables......Page 106 Enum Example......Page 107 Enum Constant Values......Page 108 Strongly Typed Enums......Page 109 Struct Initialization......Page 111 Union......Page 113 Anonymous Union......Page 114 Operator Overloading Example......Page 115 Unary Operator Overloading......Page 116 Overloadable Operators......Page 118 Implicit Conversion Constructor......Page 119 Explicit Conversion Constructor......Page 120 Explicit Conversion Operators......Page 121 Chapter 22: Namespaces......Page 123 Nesting Namespaces......Page 124 Namespace Member Import......Page 125 Type Alias......Page 126 Including Namespace Members......Page 127 Constant Pointers......Page 128 Constant Objects......Page 129 Constant Return Type and Parameters......Page 130 Constant Fields......Page 131 Constant Expressions......Page 132 Constant Guideline......Page 134 Chapter 24: Preprocessor......Page 135 Define......Page 136 Predefined Macros......Page 137 Macro Functions......Page 138 Conditional Compilation......Page 139 Compile if Defined......Page 140 Error......Page 141 Attributes......Page 142 Try-Catch Statement......Page 144 Exception Specification......Page 146 Exception Class......Page 147 Implicit Conversions......Page 149 C++ Casts......Page 150 Reinterpret Cast......Page 151 C-Style and New-Style Casts......Page 152 Dynamic Cast......Page 153 Dynamic or Static Cast......Page 154 Unique Pointer......Page 156 Shared Pointer......Page 157 Weak Shared Pointer......Page 158 Function Templates......Page 160 Calling Function Templates......Page 161 Multiple Template Parameters......Page 162 Class Templates......Page 163 Default Types and Values......Page 164 Class Template Specialization......Page 165 Function Template Specialization......Page 166 Variadic Templates......Page 167 Fold Expressions......Page 169 Why Use Headers......Page 171 What to Include in Headers......Page 172 Inline Variables......Page 175 Include Guards......Page 177 Index......Page 178 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++. 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 . 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. You will : 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 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++16 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 histoy 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
دانلود کتاب C++17 Quick Syntax Reference : A Pocket Guide to the Language, APIs and Library