is there a better way to compare 2 stl list? I write a function like
this below, but I wonder if there is a better way to achieve that (e.g.
less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) {
if (srcList.size() != destList.size()) {
return false;
}

is there a better way to compare 2 stl list? I write a function like this below, but I wonder if there is a better way to achieve that (e.g. less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) { if (srcList.size() != destList.size()) { return false; }

is there a better way to compare 2 stl list? I write a function like this below, but I wonder if there is a better way to achieve that (e.g. less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) { if (srcList.size() != destList.size()) { return false; }

is there a better way to compare 2 stl list? I write a function like this below, but I wonder if there is a better way to achieve that (e.g. less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) { if (srcList.size() != destList.size()) { return false; }

is there a better way to compare 2 stl list? I write a function like this below, but I wonder if there is a better way to achieve that (e.g. less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) { if (srcList.size() != destList.size()) { return false; }

is there a better way to compare 2 stl list? I write a function like this below, but I wonder if there is a better way to achieve that (e.g. less code)?
bool isSame(const list<int>& srcList, const list<int>& destList ) { if (srcList.size() != destList.size()) { return false; }