#include class Unit; class UnitsQueue{ private: std::vector queue_; typedef std::vector::iterator viterator; public: void add(Unit*); Unit* front(); void pop(); void remove(viterator); void remove(Unit*); viterator beginIterator(); viterator endIterator(); void recalcQueue(); };