|
|
От: |
Nuzhny
|
https://github.com/Nuzhny007 |
| Дата: | 10.10.18 09:32 | ||
| Оценка: | +1 | ||
template<class BidirIt>
void reverse(BidirIt first, BidirIt last)
{
while ((first != last) && (first != --last)) {
std::iter_swap(first++, last);
}
}