For the assignment I need to make a custom vector class that can be used as the container for a queue where all assignments are O(1).
I'm trying to implement a pop_front function in my vector to do this, but it isn't working. Here's what I have for it.
Void pop_front(){
arr += sizeof(T);
siz--;
}
arr
is a dynamically allocated array I'm using for the container, and siz
is its current size. Is there something fundamentally wrong with what I'm trying to do?