Z
zl2k
hi, there,
Can I pass auto_ptr in the following manner?
auto_ptr<T> obj; // The obj is not initialized and null here, right?
function(obj);
// Do I get the initialized obj here?
void function(auto_ptr<T> obj){// can I pass a null auto_ptr into the
function and get initialized inside?
obj(new T());
}
Thanks a lot.
zl2k
Can I pass auto_ptr in the following manner?
auto_ptr<T> obj; // The obj is not initialized and null here, right?
function(obj);
// Do I get the initialized obj here?
void function(auto_ptr<T> obj){// can I pass a null auto_ptr into the
function and get initialized inside?
obj(new T());
}
Thanks a lot.
zl2k