Remember that this
*(w++) = *r;
is equivalent to this
*w = *r;
++w;
Type: Posts; User: oogabooga
Remember that this
*(w++) = *r;
is equivalent to this
*w = *r;
++w;
It's easier to follow like this:
// g++ -std=c++11 -Wall -Wextra unique.cpp
#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
using std::cout;