rt
如我需要重载一个结构体,然后里面有一个 vector,那么如何重载 [] 来表示 vector 的元素。
[]
int &operator [](int x){return c.begin()+x;}
这样好像有一点问题,求大佬指点。