title: Is this a reasonable use of the ternary operator?
body: <p>Are there any understanding / maintainability issues that result from code like</p>
  
  <pre><code>inVar1 == 0 ? NULL : v.push_back(inVar1);
  inVar2 == 0 ? NULL : v.push_back(inVar2);
  </code></pre>
  
  <p>and so forth.</p>
  
  <p>The possibly confusing idea is using the ternary operator for program flow rather than variable assignment, which is the usual explanation.</p>
  
  <p>I haven't seen coding standards at work that address this usage, so while I'm comfortable doing this I'd like to find out if there is a good reason not to.</p>