دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: [10th release ed.] نویسندگان: O'Reilly Media., Meyers. Scott سری: ISBN (شابک) : 9781491903995, 1491903996 ناشر: O'Reilly سال نشر: 2020;2017 تعداد صفحات: XV, [1], 315, [5] s. : il. ; 24 زبان: English فرمت فایل : EPUB (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود) حجم فایل: 18 Mb
در صورت تبدیل فایل کتاب O'Reilly: Effective Modern C++; 42 Specific Ways to Improve Your Use of C++11 and C++14 به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب O'Reilly: Effective Modern C ; 42 روش خاص برای بهبود استفاده از C 11 و C 14 نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
مجموعه ای از نکات را برای برنامه نویسان در مورد نحوه استفاده موثر از ویژگی های C++11 و C++14 ارائه می دهد که موضوعاتی مانند توابع، ارجاعات rvalue و عبارات لامبدا را پوشش می دهد.
Presents a collection of tips for programmers on how to use the features of C++11 and C++14 effectively, covering such topics as functions, rvalue references, and lambda expressions.
From the Publisher
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
Introduction
Terminology and Conventions
Reporting Bugs and Suggesting Improvements
1. Deducing Types
Item 1: Understand template type deduction.
Case 1: ParamType is a Reference or Pointer, but not a Universal Reference
Case 2: ParamType is a Universal Reference
Case 3: ParamType is Neither a Pointer nor a Reference
Array Arguments
Function Arguments
Item 2: Understand auto type deduction.
Item 3: Understand decltype.
Item 4: Know how to view deduced types.
IDE Editors
Compiler Diagnostics
Runtime Output
2. auto
Item 5: Prefer auto to explicit type declarations.
Item 6: Use the explicitly typed initializer idiom when auto deduces undesired types.
3. Moving to Modern C++
Item 7: Distinguish between () and {} when creating objects.
Item 8: Prefer nullptr to 0 and NULL.
Item 9: Prefer alias declarations to typedefs.
Item 10: Prefer scoped enums to unscoped enums.
Item 11: Prefer deleted functions to private undefined ones.
Item 12: Declare overriding functions override.
Item 13: Prefer const_iterators to iterators.
Item 14: Declare functions noexcept if they won’t emit exceptions.
Item 15: Use constexpr whenever possible.
Item 16: Make const member functions thread safe.
Item 17: Understand special member function generation.
4. Smart Pointers
Item 18: Use std::unique_ptr for exclusive-ownership resource management.
Item 19: Use std::shared_ptr for shared-ownership resource management.
Item 20: Use std::weak_ptr for std::shared_ptr-like pointers that can dangle.
Item 21: Prefer std::make_unique and std::make_shared to direct use of new.
Item 22: When using the Pimpl Idiom, define special member functions in the implementation file.
5. Rvalue References, Move Semantics, and Perfect Forwarding
Item 23: Understand std::move and std::forward.
Item 24: Distinguish universal references from rvalue references.
Item 25: Use std::move on rvalue references, std::forward on universal references.
Item 26: Avoid overloading on universal references.
Item 27: Familiarize yourself with alternatives to overloading on universal references.
Abandon overloading
Pass by const T&
Pass by value
Use Tag dispatch
Constraining templates that take universal references
Trade-offs
Item 28: Understand reference collapsing.
Item 29: Assume that move operations are not present, not cheap, and not used.
Item 30: Familiarize yourself with perfect forwarding failure cases.
Braced initializers
0 or NULL as null pointers
Declaration-only integral static const data members
Overloaded function names and template names
Bitfields
Upshot
6. Lambda Expressions
Item 31: Avoid default capture modes.
Item 32: Use init capture to move objects into closures.
Item 33: Use decltype on auto&& parameters to std::forward them.
Item 34: Prefer lambdas to std::bind.
7. The Concurrency API
Item 35: Prefer task-based programming to thread-based.
Item 36: Specify std::launch::async if asynchronicity is essential.
Item 37: Make std::threads unjoinable on all paths.
Item 38: Be aware of varying thread handle destructor behavior.
Item 39: Consider void futures for one-shot event communication.
Item 40: Use std::atomic for concurrency, volatile for special memory.
8. Tweaks
Item 41: Consider pass by value for copyable parameters that are cheap to move and always copied.
Item 42: Consider emplacement instead of insertion.
Index