Published in: C++
#define foreach(m_itname,m_container) \ for( typeof(m_container.begin()) m_itname=m_container.begin() ; \ m_itname!=m_container.end() ; \ m_itname++ )
You need to login to post a comment.
C++ The Core Language
C++: The Core Language is for C programmers transitioning to C++. It's designed to get readers up to speed quickly by covering an essential subset of the language. The subset consists of features without which it's just not C++, and a handful of others that make it a reasonably useful language.
yuconner on 12/04/07
3 people have marked this snippet as a favorite
Published in: C++
#define foreach(m_itname,m_container) \ for( typeof(m_container.begin()) m_itname=m_container.begin() ; \ m_itname!=m_container.end() ; \ m_itname++ )
You need to login to post a comment.