capacity
Philippe91 opened this issue · 1 comments
Example: for a 'capacity' of 10 provided to the ctor, only 9 items can be pushed to the queue.
I understand this is not a bug, but at least the documentation should state so.
The best would have been: for a capacity of X specified by the client, use X - 1 as real capacity. But it's too late to change.
This would also have made it clearer why the capacity must be at least 2.
Example: for a 'capacity' of 10 provided to the ctor, only 9 items can be pushed to the queue.
I understand this is not a bug, but at least the documentation should state so.
The best would have been: for a capacity of X specified by the client, use X + 1 as real capacity. But it's too late to change.
This would also have made it clearer why the capacity must be at least 2.