Standard C++ Library Class Reference

copy(result.begin(),result.end(),
ostream_iterator<int>(cout," "));
cout << "}" << endl << endl;
return 0;
}
Output :
The result of:
{3 5 7 8 } intersection {1 3 5 7 9 11 } =
{3 5 7 }
Warning
If your compiler does not support default template parameters, then you need to always supply
the Compare template argument and the Allocator template argument. For instance, you will
need to write :
set<int, less<int> allocator>
instead of :
set<int>
See Also
includes, set, set_union, set_difference, set_symmetric_difference