7.13 — Code coverage

In the previous lesson , we discussed how to write and preserve simple tests. In this lesson, we’ll talk about what kind of tests are useful to write to ensure your code is correct. The term is used to describe how much of the source code of a program is …

M.5 — std::move_if_noexcept

(h/t to reader Koe for providing the first draft of this lesson!) In lesson , we covered the noexcept exception specifier and operator, which this lesson builds on. We also covered the strong exception guarantee, which guarantees that if a function is interrupted by an exception, no memory will be …