I noticed that the same questions are often encountered, albeit under different names - for example, about the unread buffer and the \n character remaining in it. In this case, some in the openers use ignore , others - reading on the character before \n . Those. everyone has their own favorite way.
Once again I read from Sutter how to make an assignment operator through an exchange function.
Well, i.e. there are some standard preparations, idioms, how to do this or that frequently occurring action, and on which a beginner has to wrestle with his head and reinvent the wheel.
Maybe I am talking nonsense, but, in my opinion, every professional has his own set of these blanks - maybe share in the answers? There will be something to learn.
If you wrote nonsense - sorry.
tiewhen comparing. I did not know before. - Mikhailo