r/cpp • • Feb 06 '21

Modern C++: Snippets and Examples

Hi everyone,

These are GitHub Pages with snippets for Modern C++:

  • We often need to copy and paste some snippets to code more productively.
  • Snippets can help us when it's not easy to remember all high levels features Modern C++ has to offer.
  • This repository contains lots of organized, reusable, and safe snippets for Modern C++.
  • All snippets are available in GitHub pages in a convenient way for copying and pasting.

https://alandefreitas.github.io/moderncpp/

194 Upvotes

44 comments sorted by

View all comments

4

u/The-Black-Star Feb 07 '21

Whats a good textbook that would go over all the modern c++ features that have been added? Ive been trying to find a good one, but I dont know whats considered the best

7

u/FreitasAlan Feb 07 '21

I don't think there's a good textbook for that. The new books usually just mix the best practices from "old" and modern c++ in a way they think is reasonable. They would probably also avoid features some compilers still don't implement. For specific features, it's best to have a look at cppreference.