mrfangzheng

Hope and fear are useless. Be confident, and always be prepared for the worst.
  首页  :: 新随笔  :: 联系 :: 管理

C++ Boost foreach

Posted on 2010-07-02 14:53  mrfangzheng  阅读(521)  评论(0编辑  收藏  举报
#include <boost/foreach.hpp>

std::vector< ElementType > collection;

BOOST_FOREACH( ElementType element, collection ) 
{ }
http://www.boost.org/doc/libs/1_43_0/doc/html/foreach.html