A collection of resources useful for learning C++
Hands down the best C++ reference next to the standard itself
Answers a lot of very specific questions about the C++ language.
One of the best C++ tutorials out there.
Teaches modern C++ techniques right from the start.
A decent C++ tutorial from a website with a number of good articles.
However, some of their advice is outdated or flawed,
so take some of the advice with a grain of salt.
The newer articles about C++11 features are very good though.
An excellent guide on how to write good C++ code, with input from Bjarne Stroustrup (creator of C++) and Herb Sutter (world-renowned C++ expert).
There's a version specifically formatted for web browsing if you prefer that to markdown documents.
The musings of C++'s creator.
The musings of C++'s creator about C++11.
The musings of C++'s creator about C++ style.
A talk given by Bjarne Stroustrup in 2012 discussing C++11 and good C++ style.
A series of blogs by a very well informed individual, disecting advanced C++ problems, particularly ones centred around design decisions.
A Wikibook series demonstrating various intermediate C++ patterns and idioms.
A collection of very specific articles that I find to be particularly englightening.
const
correctness and other things you want to know aboutconst
- An intro to
nullptr
,enum class
andcstdint
- Move semantics and rvalue references
- What are the different casts for?
- Why you should avoid
using namespace std;
- Why dynamic memory allocation should be avoided if possible
- What are the rules of using an underscore in an identifier?
- What's the point of
std::nullptr_t
? - Function pointers or subclasses?
const
vsconstexpr
- C++ myths - exceptions,
for(;;)
,if((x = f())
and timing - "The STL is the same as the C++ standard library" - No, it isn't!
- "Enums are slow" - No they aren't
- "Lambdas are less optimal than function pointers" - No they aren't
- "C is a subset of C++" - No it isn't
- "All C is legal C++" - No it isn't
- "C code behaves the same when compiled as C++" - Not always
- "C is better than C++" - Nope