Hi,
Is there any good method to convert a it++ ivec output
to a pointer? I need a interface to other functions. The result of my
it++ turbo decode data is a ivec.
So I want to return a pointer, the int pointer should point to the ivec datas.
Thanks,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there any good method to convert a it++ ivec output
to a pointer? I need a interface to other functions. The result of my
it++ turbo decode data is a ivec.
So I want to return a pointer, the int pointer should point to the ivec datas.
Thanks,
What about the _data() method of ivec? It is documented as "not recommended to use", but I am using it time to time...
Vasek is right. You can try to use the _data() method to obtain the pointer to the internal data of the vector.
/Adam