Yes, you are right. Somehow I had blackout at the moment. std::copy is the correct approach.
ct way to use std::inserter is