foreach in c++ (#define)


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #define foreach(m_itname,m_container) \
  2.   for( typeof(m_container.begin()) m_itname=m_container.begin() ; \
  3.   m_itname!=m_container.end() ; \
  4.   m_itname++ )

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.