Hi there! I have a task - to compare 2 std::lists without taking elements order into account. That is, lists A-B-C-D and D-C-B-A are equal, but A-B-C-D and A-B-D-E aren't.
We start with the following code
class T
{
...
public:
bool operator= {...}
}
bool compare_lists(const std::list<T>& list_1, const std::list<T>& list_2)
{
// I need help with this function
}
Do anybody knows how to do this or with what to get started?