A repository of modern C++ code samples curated by the community
Creator of the site here. Thanks for taking a look and I really appreciate all the feedback.<p>I wanted to provide a place for beginners to learn about modern features of C++ and a quick reference for idioms and best practices. As the disclaimer says, the existing samples all need review, so don't take anything as gospel. If you would like to contribute please check the samples GitHub repo [0] or leave comments on the sample pages themselves.<p>A few good points that keep coming up:<p>- The Rule of Three sample especially needs a rework (it will become the Rule of Five later today).<p>- It isn't supposed to demonstrate the best C++ formatting style, simply because that would come down to personal preference.<p>- I have opted to not use `auto` unless necessary for the sake of being explicit about types so that beginners have something to reference against. This is important regardless of ones particular preference for when `auto` should be used and it would be impossible to please everybody. I will be adding a note to the site soon.<p>- I plan to add a "requirements" section to the sample information which will state which version of C++ the sample depends on.<p>[0] <a href="https://github.com/sftrabbit/CppSamples-Samples" rel="nofollow">https://github.com/sftrabbit/CppSamples-Samples</a>