title: C++ vector max_size();
body: <p>On 32 bit System.</p>
  
  <ol>
  <li><code>std::vector&lt;char&gt;::max_size()</code> returns 2<sup>32</sup>-1, size of <code>char</code> &mdash; 1 byte</li>
  <li><code>std::vector&lt;int&gt;::max_size()</code> returns 2<sup>30</sup>-1, size of <code>int</code> &mdash; 4 byte</li>
  <li><code>std::vector&lt;double&gt;::max_size()</code> returns 2<sup>29</sup>-1, size of <code>double</code> &mdash; 8 byte</li>
  </ol>
  
  <p>can anyone tell me <code>max_size()</code> depends on what?</p>
  
  <p>and what will be the return value of <code>max_size()</code> if it runs on 64 bit system.</p>