c++ vector反转reverse
templatevoid reverse ( BidirectionalIterator first, BidirectionalIterator last);如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator first,Bidirecti
·
template <class BidirectionalIterator>
void reverse ( BidirectionalIterator first, BidirectionalIterator last);
如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator first,
BidirectionalIterator last, OutputIterator result );
std::reverse(trianglePoints.begin(), trianglePoints.end());
更多推荐
已为社区贡献1条内容
所有评论(0)