Log in Sign up
Trang chủeBookC++ Core Guidelines Explained: Best Practices for Modern C++, 1st edition
C++ Core Guidelines Explained: Best Practices for Modern C++, 1st edition

C++ Core Guidelines Explained: Best Practices for Modern C++, 1st edition

BRAND: PEARSON
Publisher:
PEARSON
Author:
Rainer Grimm
Edition:
(April 22, 2022) © 2022
eBook ISBN:
9780136875611
Print ISBN:
9780136875673
Type:
1 Year Subscription. Dành cho Cá nhân
eBook edition. 1 year Subscription. Dành cho Cá nhân | Trường ĐH, Nhóm, Thư Viện: Gọi 0915920514 để báo giá Pearson, Vital Source eBook hoặc mua Sách In

Tổng quan sách

Chuyên gia hướng dẫn C++ Rainer Grimm cung cấp nội dung bao quát thực tế, dễ tiếp cận về Nguyên tắc cốt lõi mang lại giá trị cao nhất cho sinh viên học ngôn ngữ lập trình C++. Cung cấp những hiểu biết mới, bối cảnh không thể thiếu và các ví dụ C++ đã được chứng minh rút ra từ các khóa học và hội thảo của mình, Grimm giúp sinh viên nhận được nhiều giá trị hơn từ các hướng dẫn. Phạm vi bao quát của văn bản này đề cập đến triết lý lập trình C++, giao diện, hàm, lớp, phân cấp lớp, liệt kê, quản lý tài nguyên, biểu thức, câu lệnh, hiệu suất, đồng thời, xử lý lỗi, hằng số, tính bất biến, mẫu, lập trình chung, kiểu C lập trình, tệp nguồn, Thư viện chuẩn, v.v. Mỗi phần liên kết trực tuyến với tiêu chuẩn ban đầu và bất cứ khi nào thích hợp, Grimm sẽ xem trước những tiến bộ từ C++20 và C++23. Với Grimm, sinh viên có thể sử dụng Nguyên tắc cốt lõi của C++ để viết mã C++ nhất quán, mạnh mẽ và hoạt động tốt hơn.
  1. List of selected C++ Core Guidelines xiiiList of figures xxiiiList of tables xxviiForeword xxixPreface xxxiAcknowledgments xxxviiAbout the author xxxixPart I: The Guidelines 1
  2. Chapter 1: Introduction 3Target readership 3Aim 4Non-aims 4Enforcement 4Structure 4Major sections 5
  3. Chapter 2: Philosophy 7
  4. Chapter 3: Interfaces 15The curse of non-const global variables 16Dependency injection as a cure 18Making good interfaces 20Related rules 25
  5. Chapter 4: Functions 27Function definitions 28Parameter passing: in and out 32Parameter passing: ownership semantics 38Value return semantics 42Other functions 46Related rules 52
  6. Chapter 5: Classes and Class Hierarchies 53Summary rules 54Concrete types 58Constructors, assignments, and destructors 59Class hierarchies 98Overloading and overloaded operators 117Unions 126Related rules 129
  7. Chapter 6: Enumerations 131General rules 131Related rules 137
  8. Chapter 7: Resource Management 139General rules 140Allocation and deallocation 145Smart pointers 150Related rules 164
  9. Chapter 8: Expressions and Statements 165General 166Declarations 168Expressions 186Statements 199Arithmetic 204Related rules 210
  10. Chapter 9: Performance 213Wrong optimizations 214Wrong assumptions 214Enable optimization 218Related rules 230
  11. Chapter 10: Concurrency 231General guidelines 232Concurrency 245Parallelism 266Message passing 269Lock-free programming 273Related rules 277
  12. Chapter 11: Error Handling 279Design 281Implementation 283If you can't throw 288Related rules 292
  13. Chapter 12: Constants and Immutability 293Use const 294Use constexpr 298
  14. Chapter 13: Templates and Generic Programming 301Use 302Interfaces 305Definition 320Hierarchies 330Variadic templates 332Metaprogramming 336Other rules 362Related rules 372
  15. Chapter 14: C-Style Programming 375Entire source code available 376Entire source code not available 378
  16. Chapter 15: Source Files 383Interface and implementation files 384Namespaces 391
  17. Chapter 16: The Standard Library 397Containers 398Text 404Input and output 411Related rules 419Part II: Supporting Sections 421
  18. Chapter 17: Architectural Ideas 423
  19. Chapter 18: Nonrules and Myths 427
  20. Chapter 19: Profiles 437Pro.typeType safety 438Pro.boundsBounds safety 439Pro.lifetimeLifetime safety 439
  21. Chapter 20: Guidelines Support Library 441Views 441Ownership pointers 442Assertions 443Utilities 443Part III: Appendixes 445Appendix A: Enforcing the C++ Core Guidelines 447Visual Studio 448clang-tidy 450Appendix B: Concepts 453Appendix C: Contracts 457Index 459
Chat Zalo