In C++,
function() = 10;
works if the function returns a variable by reference.
What are the use cases of it?
std::vector has operator[] which would not allow vec[n] = m otherwise.
std::vector
operator[]
vec[n] = m