[Cs3] maximum size of vector and deque

Mikhail Nesterenko mnestere at kent.edu
Tue Sep 2 15:52:26 EDT 2025


CS3 students,

It turns out there is a max_size() function available for both vectors
and deques. The return value is implementation-defined. This is a
limit that vector or deque cannot exceed due to the particular STL
implementation. However, the allocation may fail a lot quicker by
exhausting memory in the specific computer.

Thanks,
--
Mikhail


More information about the cs3 mailing list