Re: (silly?) speed comparisons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maric Michaud

    Re: (silly?) speed comparisons

    Le Wednesday 09 July 2008 12:35:10 mk, vous avez écrit :
    vector<stringmo ve_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&m ove_slice(vecto r<string&>& vec, int start, int stop, int
    dest)

    or

    vector<string*m ove_slice(vecto r<string*>& vec, int start, int stop, int
    dest)


    --
    _____________

    Maric Michaud
Working...