// // Created by Julio Tentor // #ifndef DEMOQUEUE4_SPECIALQUEUE_H #define DEMOQUEUE4_SPECIALQUEUE_H #include #include template class specialqueue: public std::queue> { public: specialqueue join(specialqueue & other); }; template specialqueue specialqueue::join(specialqueue & other) { specialqueue result = specialqueue(); for (auto it = this->c.begin(); it != this->c.end(); ++it) { result.push(*it); } for (auto it = other.c.begin(); it != other.c.end(); ++it) { result.push(*it); } return result; } #endif //DEMOQUEUE4_SPECIALQUEUE_H