const operator[] returns ref or throws