title: Is there a way to call multiple functions on the same object with one line?
body: <p>Just trying to tidy up a program and was wondering if anyone could feed me some syntax sugar with regard to calling a member function on one queue multiple times on the same line.  </p>
  
  <p>For example, changing:</p>
  
  <pre><code>queue&lt;int&gt; q;
  q.push(0);
  q.push(1);
  </code></pre>
  
  <p>to something like:</p>
  
  <pre><code>q.(push(0), push(1));
  //or
  q.push(0).push(1);
  </code></pre>
  
  <p>I know it looks a little ridiculous, and it isn't practical.  But if I wanted to shorten a small portion of code like that, is there an option to do so?  From what I've read so far, it's only possible to chain methods when the function has a non-<code>void</code> return value.</p>
  
  <p>Of course, this is an option:</p>
  
  <pre><code>q.push(0); q.push(1);
  </code></pre>
  
  <p>But I'm trying to avoid having <code>q</code> there twice.  Again...  syntactic sugar :)</p>
  
  <p>The goal here is not to initialize, but to condense the number of times an object/container is brought up in a block of code. The reason I'm referencing a queue is because it's dynamic.</p>