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.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.A few good points that keep coming up:- The Rule of Three sample especially needs a rework (it will become the Rule of Five later today).- It isn't supposed to demonstrate the best C++ formatting style, simply because that would come down to personal preference.- 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.- I plan to add a "requirements" section to the sample information which will state which version of C++ the sample depends on.[0] https://github.com/sftrabbit/CppSamples-Samples