Output Formatting with std::copy

I had to do some output formatting in C++ for showing the content of a buffer. Take for instance this buffer:

I wanted the output to be like this:

The simples way to do it is like this:

That for loop achieves the goal. But then, I though, why not using std::copy?…