Re:C++ is faster and safer than Rust (2020)
by makapuf on Friday October 08, 2021 @01:26AM
(#28796027)
That's what I meant with operator++ being redefined to do anything.
[ Parent
| on HN ]
Re:C++ is faster and safer than Rust (2020)
by jcelerier on Friday October 08, 2021 @07:34AM
(#28798055)
but when you write generic algorithms (as you should), you don't know beforehand with which "operator++" your a will be called. So you have to go for the one which will give the best performance.