STG_LOCKER lock(&mutex);
parent::iterator it(parent::begin());
- while (it != parent::end())
+ while (it != parent::end())
{
delete *it++;
}
inline
ACTIONS_LIST::parent::iterator ACTIONS_LIST::begin()
-{
+{
STG_LOCKER lock(&mutex);
return parent::begin();
}
inline
ACTIONS_LIST::parent::iterator ACTIONS_LIST::end()
-{
+{
STG_LOCKER lock(&mutex);
return parent::end();
}
inline
ACTIONS_LIST::parent::const_iterator ACTIONS_LIST::begin() const
-{
+{
STG_LOCKER lock(&mutex);
return parent::begin();
}
inline
ACTIONS_LIST::parent::const_iterator ACTIONS_LIST::end() const
-{
+{
STG_LOCKER lock(&mutex);
return parent::end();
}
std::for_each(
parent::begin(),
parent::end(),
- std::mem_fun(&BASE_ACTION::Invoke)
-);
+ [](auto action){ action->Invoke(); });
}
#endif