template <typename T>
bool operator==(const Stack<T>& a, const Stack<T>& b)
i must implement the stack adt using an STL (i have chosen vector)
I am having trouble overloading this nonmember global function. I have a vector in the private section and I wanted to compare each element by popping and checking the top to see if they are equal, however, I can't do this because the stacks are const. Can someone please guide me towards the right direction?