[cpp] view plaincopy
- template <class BidirectionalIterator>
- void reverse ( BidirectionalIterator first, BidirectionalIterator last);
[cpp] view plaincopy
- 如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator first,
- BidirectionalIterator last, OutputIterator result );
[cpp] view plaincopy
- std::reverse(trianglePoints.begin(), trianglePoints.end());
c++ vector反转reverse,布布扣,bubuko.com
时间: 2024-10-14 05:19:09