Notebook C++ : Tips and Tricks with Templates

Автор: literator от 21-01-2023, 18:47, Коментариев: 0

Категория: КНИГИ » ПРОГРАММИРОВАНИЕ

Notebook C++ : Tips and Tricks with TemplatesНазвание: Notebook C++ : Tips and Tricks with Templates
Автор: Andreas Fertig
Издательство: Leanpub
Год: 2021-01-15
Страниц: 103
Язык: английский
Формат: pdf (true), epub, mobi
Размер: 10.1 MB

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.

This book is part of a series which is called Notebook C++. The idea is that most of us have some kind of rules about do's and don'ts or tips and tricks to keep in mind. It is probably one of the most frequent questions I get during training classes. I have such a list too. In this series, I will publish mine.

My idea is to create multiple short books (ok what is the number of pages required to call it a book or short?) about various topics. I currently plan to share tips about templates (this book), lambdas, and trap-like situations like dangling references. There will probably be more.

Why several short books and not a single large one? Simply to give you a choice. Maybe you are already fine with one topic but have an interest in tips for another topic. Why then by a large book where you need only a portion of it? Another thing is I personally like printed books. There I find smaller ones more comfortable when carrying them around like on a train or airplane. Plus, they are not that heavy then, which is also a plus.

The book corresponds to my general style, which is a mix of explaining and sharing code examples for better illustration and understanding. As I’m the creator of C++ Insights, which I created to be able to show more things rather than just telling, there will be examples that peek behind the scenes.

As we have the joy to have multiple standards, we also need a way to address which standard is used. This is something I often experience when customizing my classes together with customers. They have only C++14 available. Or the plan to upgrade to C++17 but currently are on C++11. In this book, I use my experience and my system from my classes and talks. Therefore, my slides have a small marker on the upper right corner, stating which standard the functionality belongs too. The default assumption there is that it is C++11. However, a couple of Notes refer to C++98 and are still valid in newer versions of C++.

Скачать Notebook C++ : Tips and Tricks with Templates








Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.