On Fri, 31 Mar 2023 04:44:47 -0700 (PDT)
=?UTF-8?B?w5bDtiBUaWli?= <
oot...@hot.ee> wrote:
>On Friday, 31 March 2023 at 12:26:06 UTC+3,
Mut...@dastardlyhq.com wrote:
>> I'm currently writing software that requires a deque that will reach a
>> max size and stay there so for example at the limit when I push something
>> on one end it automatically pops it off the other. Obviously this is simple
>> to accomplish with some boiler plate size check code, but does anyone know
>if
>> this sort of functionality has been mooted for upcoming STL versions?
>
>You mean C++ standard library? No. That seems quite unusual behaviour for
>deque. It is unclear why you just do not wrap std::deque to adapter that
>checks the size and does what you want?
Boost? Ugh. That abomination should crawl away and die in a corner, its time