 <p>No, not at the present time. C++0x will change the meaning of <code>auto</code>, and add a new keyword <code>decltype</code> that lets you do things like this. If you're using gcc/g++, you might also look into using its <code>typeof</code> operator, which is quite similar (has a subtle difference when dealing with references).</p>