Vector iterators

后端 未结 7 1028
再見小時候
再見小時候 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条回答
  • 2021-01-29 05:45

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

    0 讨论(0)
提交回复
热议问题