53 queue(
int size = 4096);
57 bool peek(
int offset, T *);
58 bool isEmpty()
const {
return len == 0; };
60 unsigned int length()
const {
return (
unsigned int)len; };
89 tail = (tail + 1) % size;
99 head = (head + 1) % size;
110 int pos = (head + offset) % size;
120 T *data2 =
new T[size * 2];
122 for (
int i = 0; i < len; i++) {
unsigned int length() const
bool peek(int offset, T *)
#define assert(condition)