set_difference is part of the Standard C++ algorithm function so any C++ compiler vendor has to implement it so we developers can use them immediately. Hence in a way you could call set_difference as a pre-defined function ?
Please note back in C days, do you have a Standard C function to do something like set_difference ?
E.g in C program, you use printf(...) isn't that a pre-defined function? fscanf, sscanf, fprintf etc are also pre-defined function correct ? So the concept is the same in C++. set_difference is a pre-defined function.
This website has links on all the Standard C++ functions break down into categories like Algorithm,Iterators,Containers etc.
Also, erasing the content of your threads after they are solved is not a good idea, as
other people might find them useful -> http://cplusplus.com/forum/general/46373/