Advanced Metaprogramming in Classic C++ (3rd Edition) by Davide Di Gennaro

By Davide Di Gennaro

Complex Metaprogramming in vintage C++: 3rd variation, deals a close and slightly excessive investigate template metaprogramming (TMP) utilizing vintage C++ code examples. the 2 more moderen criteria usually are not utilized in the code in order that the examples may be wealthy, illustrate the purpose, and be run with self assurance. The code may be simply tailored to incorporate the weather of the fashionable C++ criteria. The achieve for the reader is that TMP is gifted within the ebook as a suite of innovations that may permit a brand new variety on your C++ coding whereas making it quite transparent and efficient.

The publication offers with language features, layout styles, examples and functions (seen as case studies). distinctive emphasis is wear small reusable concepts that would increase the standard of day-by-day paintings. it is a ebook to take a seat with and examine from. clients of it in earlier versions indicate that they arrive again to it again and again. This version complements the clarity and readability of the discussion.

The procedure within the publication is used to maximise compatibility and obviously illustrate the innovations, permitting the reader to realize tough fabric with out the burdens of compiler error, and different pointless complexities and allowing a way more severe remedy of the topic. For these attracted to sleek C++, all next additions to the C++ language are absolutely suitable with the code during this ebook and clients accustomed to them can leverage the thoughts brought in C++XX to make the styles during this publication much more robust. there's a bankruptcy that discusses concerns concerning the more recent criteria and the fundamentals had to software for the more recent criteria are available online.

What makes the e-book remarkable is the extent of knowing of the ideas concerned imparted by way of the writer. this isn't only a rote evaluation of metaprogramming. you are going to actually comprehend tricky themes like static assertions, tips to write metafunctions, overload solution, lambda expressions, and so forth. greater than that, you'll paintings via them with functional examples guided through the author's frank motives. This e-book calls for you to imagine and to benefit and to appreciate the language for you to application at a better level.

What you’ll learn

What templates and the small item toolkit are, and the way to take advantage of them
the way to do overload resolution
easy methods to do metaprogramming with interfaces, algorithms, functors and refactoring
the right way to paintings with code generators
what's opaque kind precept and the way to take advantage of it
the right way to paintings with debugging templates and more
A bankruptcy dedicated to concerns surrounding C++0x and C++14

Who this ebook is for

This ebook is for skilled C++ programmers who are looking to examine more.
Table of Contents

Part I

1. Templates

2. Small item Toolkit

Part II

3. Static Programming

4. Overload Resolution

5. Interfaces

6. Algorithms

7. Code Generators

8. Functors

9. Opaque style Principle

Part III

10. Refactoring

11. Debugging Templates

12. C++0X

13. Appendix A: Exercises

14. Appendix B: Bibliography

Show description

Read Online or Download Advanced Metaprogramming in Classic C++ (3rd Edition) PDF

Similar nonfiction_1 books

Принципы эволюции

Принципы эволюции ЕСТЕСТВЕННЫЕ НАУКИ,НАУКА и УЧЕБА Название: Принципы эволюции Автор: Кейлоу П. Издательство: Наука Год: 1986 Страниц: ninety one Формат: pdf Объём: 2,92 мбНебольшая, но содержательная книга относится к серии книг, по которым изучают биологию на высшем, "третичном" уровне. В первую очередь она предназначена для студентов старших курсов и аспирантов, но немалую пользу может принести и лицам, самостоятельно продолжающим своё образование, да и специалистам, в том числе работающим в этой области.

Extra info for Advanced Metaprogramming in Classic C++ (3rd Edition)

Sample text

That’s my understanding. It’s privately owned. Robbins told me he pays an annual fee that gives him access through a card-activated gate. That way he can let himself in or out as needed. ” “Anyway,” Ernie continued, “Robbins got in last night. This morning, when he took his ATV out for a ride, he found the body lying facedown in the sand with the dog standing guard over it. Once we finally managed to drag the dog away, Robbins was able to take a closer look at the victim and give us a tentative ID.

Even though it made it hard to see, Tomas was grateful for the deepening snow. There would be no tire tracks left for the cops to trace. And no footprints, either. By morning, all tracks would be nothing more than slight dents. And in weather like this, no one would be out there watching, either. Only the dumbest of cross-country skiers would venture this far off the main roads. As Tomas drove, he wondered what the woman had done that merited this death sentence, but he didn’t wonder too hard. That was Miguel’s business, not his.

Maury’s camper has its own facilities. News to me. ” Joanna smiled to herself. When she had first arrived on the scene, Ernie had apologized whenever he used a bad word around her. ” she asked. ” “Yes,” Ernie said. “That’s my understanding. It’s privately owned. Robbins told me he pays an annual fee that gives him access through a card-activated gate. That way he can let himself in or out as needed. ” “Anyway,” Ernie continued, “Robbins got in last night. This morning, when he took his ATV out for a ride, he found the body lying facedown in the sand with the dog standing guard over it.

Download PDF sample

Rated 4.03 of 5 – based on 5 votes