c++ vector反转reverse

template 
  void reverse ( BidirectionalIterator first, BidirectionalIterator last);

如果不是改变原来的容器,而是翻转之后放在新容器里面,直接用reverse_copy ( BidirectionalIterator first,
                                BidirectionalIterator last, OutputIterator result );

std::reverse(trianglePoints.begin(), trianglePoints.end());


你可能感兴趣的:(cocos2d-x)