Notebook C++: Tips and Tricks with Templates
- Length: 102 pages
- Edition: 1
- Language: English
- Publisher: Fertig Publications
- Publication Date: 2021-01-20
- ISBN-10: 3949323007
- ISBN-13: 9783949323003
- Sales Rank: #1526196 (See Top 100 Books)
Did you always wonder how certain pieces of C++ code work and how you can apply the technique to your code? What can you do with decltype beyond the usual type deduction? Then have a look into Tips and Tricks with templates. Which is part of the brand new Notebook C++ series.
Notebook C++ - Tips and Tricks with Templates Foreword Using Code Examples Code download Used Compilers About the Author About the Book main vs. Main Feedback PDF/Paperback vs. epub Thank you Revision History About the Tools Compiler Explorer C++ Insights Notes by Standard at a Glance Notes belonging to C++11 Notes belonging to C++17 Notes belonging to C++20 Tips and Tricks with Templates Note 1: Know the name Note 2: Templates can have type and non-type parameters Note 3: When to use typename, when class Note 4: The parts of a variadic template Note 5: There are no implicit conversions for template parameters Note 6: Alias template for clean TMP Note 7: Variable template for clean TMP Note 8: The trailing-return-type with decltype and void() Note 9: Use declval when you need to construct a type for testing during compile-time Note 10: What void_t does Note 11: Keep that array’s size Note 12: There is no else if in C++ Note 13: More useful than it appears: always_false Note 14: Prefer auto as NTTP to reduce redundancy Note 15: Block template argument deduction Note 16: Fold expressions and the comma operator Note 17: Poor men’s fold expressions Note 18: From an array to a pack Note 19: From an array to a pack with templated lambda Note 20: Create objects in place for direct use Note 21: Guidelines for efficient use of templates Note 22: Put enable_if on the return type Note 23: enable_if and how to disable a member function Note 24: How to disable a special member function Acronyms Bibliography
Donate to keep this site alive
To access the Link, solve the captcha.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.