Vittorio Romeo covers in his second tutorial a very interesting code snippet originally posted on Twitter by Sean Parent `for_each_argument`.
Dive into C++14 - Part 2
by Vittorio Romeo
About the tutorial:
It shows and explains the usage of C++14 compile-time integer sequences, and analyzes a very interesting iterative implementation of an alternative version of Sean's function that takes the desired arity as a template parameter.
This tutorial video is a reviewed and improved version of my C++Now 2015 lightning talk ("`for_each_arg` explained and expanded").
Some possible use cases for the implemented functions are also shown and analyzed:
- `make_vector(...)`
- `forTuple` - iteration over tuple elements
- `make_unordered_map(...)`
The target audience is people with knowledge of C++11 features and some C++14 experience.
Previous episodes are here: Playlist
Add a Comment
Comments are closed.