I have a questions where I need to overload the + operator for vectors so that I can add two vectors together. The question I have is on how and where to write the code.
what is the definition of the + operator for STL vectors?
template<typename T, typename Allocator>
vector<T, Allocator> &operator+ (const vector<T, Allocator> &a, const vector<T, Allocator> &b)
and do I just code this outside of main?