Hi, during an interview I've been asked to implement a FIFO with a vector
I said I dont think it's a good idea because the complexity of inserting at the front in a std vector is linear
He insisted on using a std vector, so I'm guessing there's a trick I cannot see.
I thought about inserting at the end (push_back) and if i want to delete, i can increment a pointer that points to the beginning of the vector, but I don't have infinite memory
Any ideas ?