Tutorial: When to Write Which Special Member
When explaining someone the rules behind the special member functions and when you need to write which one, there is this diagram that is always brought up. I don’t think the diagram is particularly useful for that, however.
It covers way more combinations than actually make sense. So let’s talk about what you actually need to know about the special member functions and when you should write which combination.
» read more »