#ifndef __REFCOUNTEDLIST_H__
#define __REFCOUNTEDLIST_H__

#include <vector>
#include "refcount.h"

namespace xrt
{
	template < class T > class RefCountedList: public std::vector< T >, public ReferenceCounted
	{
	public:
		void erase( unsigned int i ) { (*this)[i] = *(this->end() - 1) ; this->pop_back(); }
	};
}

#endif //__REFCOUNTEDLIST_H__