A
Andy Chang
Hi,
If I have
typedef struct {
std::vector <float> vSomeVal;
int i;
} VEC_T;
Then is VEC_T * ptr a valid pointer to the struct accessing the vector?
Also do I need to explicitly deallocate the vector by calling the clear()
function or does the vector has its own destructor?
Thanks
Andy
If I have
typedef struct {
std::vector <float> vSomeVal;
int i;
} VEC_T;
Then is VEC_T * ptr a valid pointer to the struct accessing the vector?
Also do I need to explicitly deallocate the vector by calling the clear()
function or does the vector has its own destructor?
Thanks
Andy