mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00

* Refactor stream lists * Fix naming * Fix header inclusion * Fix annotations * Move function definitions to header * Remove mxstreamprovider.cpp * Naming
24 lines
360 B
C++
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
|