When not as often as I would like to work with the language, some aspects are forgotten. And some are never deposited in the head. Therefore, when questions arise, one has to be distracted and crawl into the documentation.
To save time in the future, as well as to better understand it during the training, it is extremely helpful to take notes and make visual crib sheets. Cheat sheet can be hung next to the wall. Good cribs in the form of flowcharts, which can be easily, step by step, to get the desired result (for example,
choose the right container ).
Under the cut, I decided to publish a couple of cheat sheets to determine the condition when the implicitly generated translation constructor and the assignment operator will be created by the compiler.
')
Cheat sheets are provided as PDF files for printing on an A4 printer, as PNG images, as well as source codes in SVG.
Implicitly generated translation constructor

Implicitly generated translation assignment operator

Sources and PDF format A4:
yadi.sk/d/s7t7uEdKAxHKq/Cheatsheets/My/C%2B%2B-move-ctorThat's all, waiting for comments. If someone comes in handy, do not forget to express your emotions in the comments.
Materials used:
-
en.cppreference.com/w/cpp/language/move_operator-
en.cppreference.com/w/cpp/language/move_constructor-
en.cppreference.com/w/cpp/language/copy_constructor-
en.cppreference.com/w/cpp/language/as_operator-
en.cppreference.com/w/cpp/language/destructor-
en.cppreference.com/w/cpp/concept/TriviallyCopyablePS where it is accepted to store files (not pictures) for a habr?