22 #ifndef COMMON_FOREACH_H 23 #define COMMON_FOREACH_H 25 #include "common/scummsys.h" 27 #if __cplusplus < 201103L 45 bool end()
const {
return i == e; }
47 mutable typename T::const_iterator i;
48 typename T::const_iterator e;
63 #define foreach(var, container) \ 64 for (const Common::_Foreach_Container_Base_ &_FOREACH_CONTAINER_ = Common::_Create_Foreach_Container_(container);\ 65 !Common::_Get_Foreach_Container_(&_FOREACH_CONTAINER_, container)->end(); \ 66 Common::_Get_Foreach_Container_(&_FOREACH_CONTAINER_, container)->next()) \ 67 for (var = *Common::_Get_Foreach_Container_(&_FOREACH_CONTAINER_, container)->i;\ 68 _FOREACH_CONTAINER_.brk > 0; --_FOREACH_CONTAINER_.brk) 72 #define foreach(var, container) for (var : container)
Definition: achievements.h:31