circular-queue icon indicating copy to clipboard operation
circular-queue copied to clipboard

Add .pop() or .drain()

Open Xgames123 opened this issue 11 months ago • 2 comments

Adding a way to remove elements without filling up the buffer to the max is nice.

Xgames123 avatar Mar 05 '25 18:03 Xgames123

The problem is that these methods can create gaps in the vector, and suddenly you need much more complex logic and unsafe to deal with it. Not a big fan tbh

YaLTeR avatar Mar 05 '25 19:03 YaLTeR

Yea i was trying to implement it in a pullrequest

Xgames123 avatar Mar 05 '25 19:03 Xgames123