(silly?) speed comparisons
Maric Michaud
maric at aristote.info
Wed Jul 9 08:47:33 EDT 2008
Le Wednesday 09 July 2008 12:35:10 mk, vous avez écrit :
> vector<string> move_slice(vector<string>& vec, int start, int stop, int
> dest)
I guess the point is to make a vector of referene to string if you don't want
to copy string objects all around but just a word for an address each time.
The signature should be :
vector<string&> move_slice(vector<string&>& vec, int start, int stop, int
dest)
or
vector<string*> move_slice(vector<string*>& vec, int start, int stop, int
dest)
--
_____________
Maric Michaud
More information about the Python-list
mailing list