cpp/iterator/back inserter

is a convenient function template that constructs a std for the container with the type deduced from the type of the argument.

Return value
A std which can be used to add elements to the end of the container