In the fifth episode of the template metaprogramming series we we continue to expand our metaprogramming library and in doing so we will run into some limitations of variadic templetes and talk about different solutions to overcome these limitations.
Code: https://godbolt.org/z/fYcfofcKM
Or find code for all episodes on GitHub: https://github.com/QBouts/BitsOfQ
Full Playlist: https://youtube.com/playlist?list=PLWxziGKTUvQFIsbbFcTZz7jOT4TMGnZBh
-- TIMESTAMPS --
00:00 - Introduction & recap
01:14 - The 'at' metafunction
04:26 - The back metafunction
05:37 - How variadic parameters are deduced
06:28 - Fixing the back metafunction
07:39 - The push_back metafunction
08:33 - The pop_back metafunction
11:08 - Summary
Outro music by lesfm from pixabay.
If you have any questions or feedback, just leave a comment below.
See you next time!