Sections[lang]
Language
The core language as it is written now, from values and moves to lambdas and modules, for developers who learned C++ once and need the current answer.
- Clause
- 1 of 8
- Answers
- 13, newest first
- Page
- 2 of 2
- Written for
- C++17, C++20
- Written by
- Miriam Castellanos
Answers in Language 13, newest first
Rule of zero: the special members C++ writes for you
Which special member functions C++ declares for a class, what declaring one does to the others, and when to write none, all five, or delete them.
written for C++20
C++ try catch: how to throw and catch exceptions
C++ try, catch and throw: the syntax, why you catch by const reference, the order of handlers, your own exception type, and what happens when nothing catches.
written for C++17
using namespace std: what it does and what to write instead
What using namespace std does to name lookup, the clashes and silent overload changes it caused on four compilers, and what to write instead.
written for C++17