mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 23:16:55 -04:00
Use deque to implement a queue
This commit is contained in:
parent
bec1cb38a2
commit
da4f2f1bd2
@ -8,7 +8,7 @@
|
|||||||
#ifndef STL_QUEUE_H
|
#ifndef STL_QUEUE_H
|
||||||
#define STL_QUEUE_H
|
#define STL_QUEUE_H
|
||||||
|
|
||||||
#include <list.hpp>
|
#include <deque.hpp>
|
||||||
#include <types.hpp>
|
#include <types.hpp>
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
@ -16,7 +16,7 @@ namespace std {
|
|||||||
/*!
|
/*!
|
||||||
* \brief Container adapter to provide a queue (FIFO)
|
* \brief Container adapter to provide a queue (FIFO)
|
||||||
*/
|
*/
|
||||||
template<typename T, typename C = std::list<T>>
|
template<typename T, typename C = std::deque<T>>
|
||||||
struct queue {
|
struct queue {
|
||||||
/*!
|
/*!
|
||||||
* \brief Indicates if the queue is empty
|
* \brief Indicates if the queue is empty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user