Vector iterators

后端 未结 7 1030
再見小時候
再見小時候 2021-01-29 04:45

I have a the following code.

vector* irds = myotherobj->getIRDs();//gets a pointer to the vector
for(vector::iterator it = ir         


        
7条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 05:45

    The usual idiom is &*it to get a pointer. Dynamic casts have nothing to do with it.

提交回复
热议问题