I saw some code of the "operator" type in the internet with some examples:
//Overloaded operators
int& operator[](int) const; //function type: int& because returns a[i] (or &a[i])
const Vector& operator++();
const Vector& operator--();
const bool operator==(Vector&) const;
Vector& operator=(const Vector&); //COPY ASSIGNMENT - rule of 3
Vector& operator+=(const Vector&); //a Vector, += a vector (since its IN the vector class)
const Vector operator+(const Vector&); //adds values of two equal sized vectors
const Vector& operator+(int); //deals with adding a single int (essentially .pushBack(int))
I want to be able being sure to know what this "operator" function can do, but it's not easy to search for it.
Does someone know what "operator" is?
Thanks for any help!