In C++,
function() = 10;
works if the function returns a variable by reference.
What are the use cases of it?
Another classic case:
class Foo { Foo(); public: static Foo& getSingleton(); };