template <class BidirectionalIterator>
  void reverse ( BidirectionalIterator first, BidirectionalIterator last);

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

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


posted on 2013-01-02 18:58  纯洁的坏蛋  阅读(15326)  评论(0编辑  收藏  举报