

Yes, always a tuple.


The limitation of needing compile-time knowledge of the max size of the Deque is pretty rough though.


Dependong on your API there may be headers that can help you.
This talk has some info on that if memory serves me well https://m.youtube.com/watch?v=BIguvia6AvM
Can you give some examples?
What languages provide out of the box varies a lot. Rust provides a ton of things compared to say C.