CppPatterns-Patterns
CppPatterns-Patterns copied to clipboard
A repository of modern C++ patterns curated by the community.
This should take care of #62.
I added two new samples in the "input" category, both showing how to read the entire contents of an input stream into a variable in one shot. - `read-text-stream` shows...
* Fix typos Check out [Arne Mertz's writeup on the subject](https://arne-mertz.de/2016/10/passkey-idiom/), although this allegedly originated on [Stack Overflow](https://stackoverflow.com/questions/3217390/clean-c-granular-friend-equivalent-answer-attorney-client-idiom/3218920#3218920). Let me know if I need to change anything in the way...
Is the goal of this website to provide examples only for standard libraries or will it branch out to non-standard? The reason I ask is it's been 10 years since...
Add CI to monitor correct building of the project, also helps in detecting compile time errors for pull requests and helps catching trivial errors, almost every cool project on Github...
Simple technique for giving the compiler a chance to provide better error messages. I am not aware of any drawbacks, other than lengthening the code a bit.
Includes: - `static_assert` - `assert` - Exceptions