I can\'t understand how does back_inserter knows the type of the container to return.
back_inserter
My "investigation" started with this page. There you will