June 2017
Intermediate to advanced
532 pages
12h 59m
English
In this section, we define some simple toy function objects and concatenate them, so we get a single function that applies the simple toy functions after each other to the input we give it. In order to do so, we write our own concatenation helper function:
#include <iostream> #include <functional>
template <typename T, typename ...Ts> auto concat(T t, Ts ...ts) {
Read now
Unlock full access