June 2017
Intermediate to advanced
532 pages
12h 59m
English
In this section, we are going to use std::transform in order to modify the items of a vector while copying them:
#include <iostream> #include <vector> #include <string> #include <sstream> #include <algorithm> #include <iterator> using namespace std;
int main() { vector<int> v {1, 2, 3, 4, 5};
Read now
Unlock full access