#include
#include
#include
using namespace std;
template
inline void inserer_elements (T& vec, int first, int last)
{
for (int i=first; i<=last; ++i) {
vec.insert(vec.end(),i);
}
}
int main()
{
vector vec;
vector::iterator pos;
inserer_elements(vec,-8,-2);
inserer_elements(vec,-22,-3);
inserer_elements(vec,-11,-6);
cout<<"Contenu avant le tri: ";
copy(vec.begin(), vec.end(),ostream_iterator(cout," "));
cout<