Small and fully commented project that illustrates best practices of C++
<p>Are there any small projects that illustrate best practices of C++? It would be really great if one can learn a lot from one simple and fully commented project, rather than reading materials that show best practices with many unrelated snippets.</p>

<p>As an example, one of the header file of the project could look something like this:</p>

<pre class="lang-cpp prettyprint-override"><code>#pragma once // Use 'pragma once' if your compiler supports it. Faster build time than using include guard. More explanation...

#ifndef MYHEADER_H // Traditional include guard, for compilers that do not support #pragma once

class Apple; // use forward declaration whenever possible to reduce build time
</code></pre>
