title: Using push_back on vector allocated on the heap
body: <p>I want to create a string vector inside a function and allocate memory for it on the heap. For this I am using</p>
  
  <p><code>vector&lt;string&gt;* residuetable = new vector&lt;string&gt;();</code></p>
  
  <p>When I then try to do</p>
  
  <p><code>&amp;residuetable.push_back(modulo((exponentiate("2", exponent02)), modulus));</code></p>
  
  <p>i.e. try to add the return value from several function calls to the vector using the <a href="http://www.cplusplus.com/reference/vector/vector/push_back/" rel="nofollow" title="push_back">push_back</a> function, I get the compile time error</p>
  
  <p><code>request for member 'push_back' in 'residuetable', which is of non-class type 'std::vector&lt;std::string, std::allocator&lt;std::string&gt; &gt;*</code></p>
  
  <p>How can I solve this problem and add the result of the function calls at the end of the vector allocated on the heap?</p>