2 #include "AudioTools/CoreAudio/AudioBasic/Collections/List.h"
21 bool enqueue(T& data){
24 vector[_end_pos++] = data;
38 bool dequeue(T& data){
47 memmove(&vector[0], &vector[1], (_end_pos-1)*
sizeof(T));
48 vector[--_end_pos] = null_value;
53 return _end_pos < 0 ? 0 : _end_pos;
56 bool resize(
size_t size) {
57 if (!vector.resize(size)){
64 for (
int j=0;j<vector.size();j++){
65 vector[j] = null_value;
76 return _end_pos >= vector.size();
79 size_t capacity() {
return vector.capacity(); }
82 vector.setAllocator(allocator);