Re: libstdc++ deque allocation

2016-06-23 Thread Jonathan Wakely
On 23 June 2016 at 01:10, Soul Studios wrote: > Hi there- > quick question, It would have been better on the libstdc++ mailing list. > does deque as defined in libstdc++ allocate upon initialisation or upon > first insertion? Unfortunately our std::deque allocates some memory in its default cons

libstdc++ deque allocation

2016-06-22 Thread Soul Studios
Hi there- quick question, does deque as defined in libstdc++ allocate upon initialisation or upon first insertion? Trying to dig through the code but can't figure it out. Reason being, it's insertion graphs seem to show a surprisingly linear progression from small amounts of N to large amounts.