Some resources for learning metaprogramming

The C++ code compiles into object codes but with metaprogramming it first generates other C++ code. Metaprograms treat other programs as their data. It specially useful when writing libraries, the Boost might be best example.

A few weeks ago I ask for learning resources on cpp slack group, and I thought it would be useful to share the answer:

by @matt:
@ademtheinternerd If you’re looking for more on templates:

Specifically on metaprogramming (which is just one particular use of templates – not to be confused with, say, generic programming!):


C++

284 Words

2018-09-19 03:00 +0300