|Your fears that using STL will bloat your program are not well founded. You can check out the source code for
set_intersection by looking in the file
<algorithm>: it contains a
for loop and two
if. With STL you only pay for what you use. Note that the algorithm requires the data to be sorted thus you must count the code for the
sort algorithm also.