[Bug libstdc++/77524] Empty std::deque allocates unnecessary heap memory

d.rigby at me dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 8 11:29:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77524

--- Comment #3 from Dave Rigby <d.rigby at me dot com> ---
As an aside, std::queue<> (defaulting to using std::deque as the underlying
Container) suffers from a similar issue - I see 4 allocations for an empty
std::queue<int>. Is this the same underlying issue, or should I raise an
additional bug on that?


More information about the Gcc-bugs mailing list