While C++'s std::lock_guard is a good step towards better lock management, and a bit more polyvalent than Rust's pattern of locks owning the ... And of course, as with any smart pointer in C++: avoid ...