title: What is the simplest example using auto in C++?
body: <p>I try to understand how <code>auto</code> is used in C++. For me the best way to understand something is to see an example. However, the examples that I saw are not so simple. For example here is "<a href="https://stackoverflow.com/questions/3784804/meaning-of-c0x-auto-keyword-by-example">Meaning of C++0x auto keyword, by example?</a>". To understand this example I need to know what are "templates", "pointers", "malloc" and so on.</p>
  
  <p>Can anybody, please, give an minimalistic example using auto so one can easy understand what it is used for?</p>