This commit is contained in:
Henrik Rydgard 2012-11-17 15:33:16 +01:00
parent 64e476c199
commit df63a78088

View File

@ -51,13 +51,6 @@ public:
count_++;
}
void push_array(const T *ptr, size_t num) {
// TODO: memcpy
for (size_t i = 0; i < num; i++) {
push(ptr[i]);
}
}
void pop() {
head_++;
if (head_ == N)
@ -65,12 +58,20 @@ public:
count_--;
}
/*
void push_array(const T *ptr, size_t num) {
// TODO: memcpy
for (size_t i = 0; i < num; i++) {
push(ptr[i]);
}
}
void pop_array(T *outptr, size_t num) {
for (size_t i = 0; i < num) {
for (size_t i = 0; i < num; i++) {
outptr[i] = front();
pop();
}
}
}*/
T pop_front() {
const T &temp = storage_[head_];