Z
zl2k
hi, there,
Is it safe if I do like this
void PopulateVector(std::vector<Object> objs){
Object obj;
objs.push_back(obj);
}
Will the obj created inside of the function lost once I try to use it
outside of the function? I need the function to populate an empty
vector. Thanks for your comments.
zl2k
Is it safe if I do like this
void PopulateVector(std::vector<Object> objs){
Object obj;
objs.push_back(obj);
}
Will the obj created inside of the function lost once I try to use it
outside of the function? I need the function to populate an empty
vector. Thanks for your comments.
zl2k