The should_flush function returns true if the holder of a container should consider it full and flush it.
This is in support of containers that perform additional work on push, which might not amortize well. In case, the container can indicate that it would be better to flush it instead of keeping pushing elements at it.
Note that this is a draft and still needs to be validated.
The
should_flush
function returnstrue
if the holder of a container should consider it full and flush it.This is in support of containers that perform additional work on
push
, which might not amortize well. In case, the container can indicate that it would be better to flush it instead of keeping pushing elements at it.Note that this is a draft and still needs to be validated.