title: using multiple return statements in a c++ function
body: <p>I was wondering if it might be sort of advantageous for a c++ compiler if there's only one return statement in a function. one of my ex-bosses once told me so but I don't get the point if there would be any difference between declaring a return variable or simply having multiple return statements, e.g. in a switch-case statement.</p>
  
  <p>So my question is: is there any difference, maybe in quality, performance or stack memory savings?</p>