Tips for golfing in C++ What general tips do you have for golfing in C++?

I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C++ (e.g. "remove comments" is not an answer). Please post one tip per answer.

(Tips that apply to C as well can be found in Tips for golfing in C - but note that some C tips don't work in C++.  For example, C++ does require function prototypes and return values.)
The ternary conditional operator ?: can often be used as a stand in for simple if--else statements at considerable savings.

It is of special value in that it can be used to select alternate lvalues as in

#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
int main(int c, char**v){
  int o=0,e=0,u;
  while(--c) ((u=atoi(v[c]))%2?o:e)+=u;
  std::cout &lt;&lt; "Sum of odds " &lt;&lt; o &lt;&lt;std::endl
            &lt;&lt; "Sum of evens " &lt;&lt; e &lt;&lt;std::endl;
}