Overloading Operator [][] c++ : <p>Let there be a class :</p>

<pre><code>template &lt;class A_Type,int sizeA,int sizeB&gt;
class Matrix {

    A_Type myMatrix[sizeA][sizeB];
    int sizeA_Val;
    int sizeB_Val;
public:
    Matrix();
    Matrix(A_Type val);

    int getSizeA()const{return sizeA_Val;} ;
    int getSizeB()const{return sizeB_Val;};

    A_Type mini() const;
    double avg() const;


    Matrix operator+(const Matrix&amp; b)
          {
             Matrix&lt;A_Type,sizeA,sizeB&gt; tmpNew;
             for (int i=0;i&lt;sizeA;i++){
                 for (intj=0;j&lt;sizeB;j++){
                     tmpNew[i][j]=myMatrix[i][j]+b[i][j];
                 }
             }

             return box;
          }
};
</code></pre>

<p>it is working exept to the  <code>Matrix operator+(const Matrix&amp; b)</code> function</p>

<p>i want it to work co i want to create operator [][], is it possible?</p>

<p>i want for example if i see mat[i][j] it will return the value in the mat->myMatrix[i][j]</p>

<p>is it possible?</p>
