Files
isle/LEGO1/omni/include/mxutilitylist.h
Christian Semmler 5b19d7953a Refactor MxStreamList based lists (#1260)
* Refactor stream lists

* Fix naming

* Fix header inclusion

* Fix annotations

* Move function definitions to header

* Remove mxstreamprovider.cpp

* Naming
2024-12-23 16:32:16 +01:00

24 lines
360 B
C++

#ifndef MXUTILITYLIST_H
#define MXUTILITYLIST_H
#include "mxstl/stlcompat.h"
// Probably should be defined somewhere else
template <class T>
class MxUtilityList : public list<T> {
public:
MxBool PopFront(T& p_obj)
{
if (this->empty()) {
return FALSE;
}
p_obj = this->front();
this->pop_front();
return TRUE;
}
};
#endif // MXUTILITYLIST_H