Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualrip-off

Posted 16 November 2012 - 08:57 AM

Is there a way to prevent the data from ever being an array, and just to create it in place in the vector? That way you can avoid copying.

If possible, functions should be templates written in terms of iterators rather than directly taking standard containers. This is flexible, because pointers are a type of iterator too.

#1rip-off

Posted 16 November 2012 - 08:56 AM

Is there a way to prevent the data from ever being an array, and just to create it in place in the vector? That way you can avoid copying?

If possible, functions should be templates written in terms of iterators rather than directly taking standard containers. This is flexible, because pointers are a type of iterator too.

PARTNERS