I have class A and class B
I define a non member method using A and B
double operator*(const A& a, const B& b);
Is it good to declare this in Ah and Bh at the same time, since it can be considered to belong to both A and B?
It can be declared like this because it is just an announcement, not a definition. Other than that, it's probably just a personal taste to do this, or put it in a general heading, etc.
Source: https://habr.com/ru/post/1535146/More articles:pydev Google App run The project path should have only one segment - eclipseHow does "% f" work in C? - cUnable to get selected option using Angular JS - angularjsPHPUnit Skeleton Generator scripts do not exist - phpWhy show an IllegalStateException error when setting up MediaRecorder? - androidUnit Test debugging is very slow in Visual Studio 2013 - visual-studioDelphi - get the user's EmailAddress from the active directory - delphiRedis example in action - pythonExport svg from Inkscape to Corel Draw - svgNo emulator image found when creating a mobile chrome Android application - androidAll Articles