Set a class variable as a reference given a reference in constructor
<p>Say I am given a class constructor:</p>

<h3>.h file</h3>

<pre><code>class Memo {
    public:
    typedef vector&lt;Memo&gt; MemoList;
    Memo (int id, Memo::MemoList &amp;list);
    MemoList pile;
};
</code></pre>

<h3>.cc file</h3>

<pre><code>Memo::Memo (int id, Memo::MemoList &amp;list) {
    pile = list;
}
</code></pre>

<p>Would <code>pile</code> be the "same thing" or "equal to" <code>list</code>, or do I need to have a new variable which acts as a reference to <code>list</code>? I would like to be able to modify <code>pile</code> and have it affect the original <code>list</code>.</p>
