mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +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
|