Ad
  • Custom User Avatar

    Whenever passing vectors, or any STL data structure to a function, always use references.

    Use Pass by reference instead of Pass by Value.

    This would reduce the time in copying your vector.