I'm trying to overload the comparision operator.
How can i overload the comparison operator == for this function? c++
template <class elemType>
    void ArrayList<elemType>::RetrieveItem(elemType & item, bool& found) {
        for (int i = 0; i < n_element; i++)
        {
            if (data[i].getName() == item.getName())
            {
                found = true;
                item = data[n_element];
            }
        }
 
     
    