I posted an answer to a question. Now I saw that another user post another answer, which basically just links to my answer. The user's answer is:
Here is a one-liner (stolen from Jonathan Mee's answer):
for(size_t i = 0, s = a.size(); i < output.size(); ++i) output[i] = b[i/s] + ' ' + a[i%s];
Full example here.
Now the code is mine, and I even already had a live example in my code along with an explanation of what the code does.
I'd consider whether this is a link only answer and I should flag it; but frankly, I get the link only thing wrong as often as I get it right. Should I be flagging this answer?
for_each
and a lambda into a regular for loop. I am not sure if that qualifies as plagiarism or fair use.