Overloading a member function to receive an assigned value?

  assignment-operator, c++, overloading

I want to create two methods of a class that access and modify some data in that instance.

For example:

int val = image.at(row, col);
image.at(row, col) = 255;

Is there a way to overload the function so it allows assignment when calling image.at(row,col)?

Source: Windows Questions C++

LEAVE A COMMENT