Quick theory question about STL algorithms

Hi, so here is the question :
How does an STL algorithm take a container as an output argument?

I haven't checked every single algorithm but as far as i have seen we are usually get only iterator in output (except for bool and void or some data type like int) to some of containers elements not the brand new container right?

Thanks
Last edited on
Note that the question talks about output arguments, not return types. But I think you are correct that it uses iterators to do this. It never takes a container type as argument.
Thanks man for your reply :)
Topic archived. No new replies allowed.