virtual T operator[](int i)const;
当然有区别,一个是const成员函数,不能修改对象,返回T类型的值;一个不是const的成员函数,返回T的引用,因此可以修改下标i所在的数据值