The lower paragraphs of this have a design warning for C++, and it is kind of funny. If I could just define my own operators with their precedent, much of this code kludge could go away. Maybe in 2030, C++ will finally include that ability.
https://cocoa.dima.unige.it/cocoa/cocoalib/doc/html/00INTRODUCTION.html