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