Как определяется диапазон сортировки?

void ZLab10::wektor_sortowanie()
 {
 vector<int> wektor;

 wektor.resize(13);

 for(int& j: wektor) j= GEN::losujOdZeraDo(20);

 cout << "Wektor wygenerowany" << endl;
 for(auto j : wektor) cout << j << " ";
 cout << endl << endl;

 cout << "Wektor posortowany" << endl;
sort(wektor.begin(), wektor.end());
 for(auto j : wektor) cout << j << " ";
 cout << endl << endl;

 cout << "Wektor pomieszany" << endl;
 random_shuffle(wektor.begin(), wektor.end(),
 GEN::losujOdZeraDo);
 for(auto j : wektor) cout << j << " ";
 cout << endl << endl;
 }

Как определяется диапазон сортировки?(строка 14)


Ответы (0 шт):