Back to Browse

Transforming and Filtering tuples - Template Metaprogramming in C++ - E9

1.4K views
Mar 25, 2022
17:18

In the ninth episode of the template metaprogramming series we write a transform and a filter function for our tuple class. Github: https://github.com/QBouts/BitsOfQ Full playlist: https://youtube.com/playlist?list=PLWxziGKTUvQFIsbbFcTZz7jOT4TMGnZBh Related content Move semantics (explains lvalues and rvalues): https://youtu.be/5xn0v7R32eU Perfect forwarding: https://youtu.be/c5dQX6GV_4g Type deduction Part 1 (template + auto): https://youtu.be/flENkfue6Xc Part 2 (deltype + lambda + return type deduction): https://youtu.be/3s23o4kNsg0 -- TIMESTAMPS -- 00:00 - Intro 01:19 - The transform function: test 03:11 - The transform function: implementation 05:42 - Overview of the filter function 07:02 - The filter function: test 08:04 - The filter function: implementation 10:08 - Extending the tests 12:57 - Implementing not_ meta function 14:00 - Getting rid of extra moves in filter 15:15 - The problem with reference type elements 16:25 - Homework & what's next? If you have any questions or feedback, just leave a comment below. See you next time!

Download

1 formats

Video Formats

360pmp429.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Transforming and Filtering tuples - Template Metaprogramming in C++ - E9 | NatokHD