I have a Samp class. In Samp.cpp, I can define / declare a function like
Samp& operator+(Samp& other) { std::cout << "something"; return other; }
What is this function? What should I call it?
This is actually unary + , you call it like this:
+
Samp s; +s; // <-- here
Source: https://habr.com/ru/post/955713/More articles:Send broadcast from one apk / package to another apk / package - androidRunning a batch file from Task Scheduler does not work with java - windowsFine Uploader S3: Refused to get insecure ETag header - amazon-s3PJSip account registration - androidXlib: Does a closing window always cause a fatal I / O error? - c ++Code works in SLIME + SBCL, but is not simple SBCL - common-lispTechnological Complex Events - architectureWhat is the purpose of gcc -Wbad-function-cast? - gccKey clash with Android resources - androidGKTurnBasedMatch members incorrect / duplicate - objective-cAll Articles