On 32 bit System.
std::vector<char>::max_size()returns 232-1, size ofchar— 1 bytestd::vector<int>::max_size()returns 230-1, size ofint— 4 bytestd::vector<double>::max_size()returns 229-1, size ofdouble— 8 byte
can anyone tell me max_size() depends on what?
and what will be the return value of max_size() if it runs on 64 bit system.