// syntax for inserting elements in set using iterator range
s.insert(v.begin(), v.end()); for (int x : s) { cout << x << " "; } // Output: 10 20 30 return 0;
}
№ | Пользователь | Рейтинг |
---|---|---|
1 | jiangly | 4039 |
2 | tourist | 3841 |
3 | jqdai0815 | 3682 |
4 | ksun48 | 3590 |
5 | ecnerwala | 3542 |
6 | Benq | 3535 |
7 | orzdevinwang | 3526 |
8 | gamegame | 3477 |
9 | heuristica | 3357 |
10 | Radewoosh | 3355 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | atcoder_official | 160 |
3 | Um_nik | 160 |
5 | djm03178 | 157 |
6 | Dominater069 | 156 |
7 | adamant | 153 |
8 | luogu_official | 152 |
9 | awoo | 151 |
10 | TheScrasse | 147 |
Inserting an Iterator Range into a Set
// syntax for inserting elements in set using iterator range
s.insert(v.begin(), v.end()); for (int x : s) { cout << x << " "; } // Output: 10 20 30 return 0;
}
Rev. | Язык | Кто | Когда | Δ | Комментарий | |
---|---|---|---|---|---|---|
en10 | AsLegend | 2024-12-16 13:31:04 | 0 | (published) | ||
en9 | AsLegend | 2024-12-16 13:30:50 | 1019 | |||
en8 | AsLegend | 2024-12-16 13:29:27 | 3711 | For those who didn't know, if you know, just a revision :) | ||
en7 | AsLegend | 2024-12-16 13:26:24 | 2498 | |||
en6 | AsLegend | 2024-12-16 13:25:41 | 461 | |||
en5 | AsLegend | 2024-12-16 13:24:48 | 1942 | |||
en4 | AsLegend | 2024-12-16 13:23:19 | 4 | Tiny change: 'or Range\ninclude ' -> 'or Range\n\n\ninclude ' | ||
en3 | AsLegend | 2024-12-16 13:22:03 | 17 | |||
en2 | AsLegend | 2024-12-16 13:18:58 | 41 | For those who didn't know, if you know, just a revision :) | ||
en1 | AsLegend | 2024-12-16 13:16:21 | 463 | For those who didn't know, if you know, just a revision :) (saved to drafts) |
Название |
---|