Learn C, C++ Concepts
What is back_inserter(coll2) at line 49 ??
back_inserter is a function that takes a container as an argument, and returns an iterator. In order to append to the vector instead of overwriting its contents, we use an adaptor back_insert.
What is back_inserter(coll2) at line 49 ??
ReplyDeleteback_inserter is a function that takes a container as an argument, and returns an iterator. In order to append to the vector instead of overwriting its contents, we use an adaptor back_insert.
Delete