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
- 24, newest first
- Page
- 3 of 3
- Written for
- C++17, C++20
- Written by
- Miriam Castellanos
Answers in Language 24, newest first
C++ move semantics: what
std::moveand&&really doWhat a move is, why
std::movemoves nothing, what C++17, C++20 and C++23 changed about temporaries and returns, and four move mistakes clang-tidy catches.written for C++20
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