Returning a struct by value vs by reference
<p>I want to return multiple values in C++ and I have this snippet of code:</p>

<pre><code>struct returns
{  
   int row_locs, col_locs;  
   int row_descriptors, col_descriptors;  
   double **locs;  
   double **descriptors;  
};



void returns (int &amp;row_locs, int &amp;col_locs, int &amp;row_descriptors, int &amp;col_descriptors, double **locs, double **descriptors)
{  
   //make some changes in variables 
}  
</code></pre>

<p>The question is "What consumes more time : <code>struct</code> or call by reference?"   </p>
