0/1 уроков (0%)
– из 1
The Rule of Seven - Plus or Minus Two - Modern C++ Boilerplate
YouTube·C++Now
Dive into the intricacies of modern C++ class design in this comprehensive conference talk from CppNow. Explore the evolution of C++ best practices, from the Rule of Three in C++98 to the Rule of Five (or Six, or Seven) in C++11 and beyond. Learn when to implement default constructors, how to optimize performance with noexcept, and the nuances of supporting self-assignment and self-move operations. Discover the differences between =default and empty braces, and gain insights into the proper implementation of swap() functions. Equip yourself with practical knowledge to write more efficient and robust C++ code, addressing common boilerplate challenges in modern C++ programming.