#include <iostream>
#include <vector>
class Stack
{
public:
Stack(int x) : x(x)
{
}
bool operator==(const Stack& e) const
{
return this->x == e.x;
}
private:
int x;
};
int main()
{
std::vector<Stack> vec = { Stack(1), Stack(2), Stack(3) };
std::vector<Stack> mec = { Stack(1), Stack(2), Stack(3) };
if ( vec == mec)
{
std::cout << "true" << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKY2xhc3MgU3RhY2sKewpwdWJsaWM6CiAgICBTdGFjayhpbnQgeCkgOiB4KHgpCiAgICB7CgogICAgfQoKICAgIGJvb2wgb3BlcmF0b3I9PShjb25zdCBTdGFjayYgZSkgY29uc3QKICAgIHsKICAgICAgICByZXR1cm4gdGhpcy0+eCA9PSBlLng7CiAgICB9Cgpwcml2YXRlOgogICAgaW50IHg7Cn07CgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnZlY3RvcjxTdGFjaz4gdmVjID0geyBTdGFjaygxKSwgU3RhY2soMiksIFN0YWNrKDMpIH07CiAgICBzdGQ6OnZlY3RvcjxTdGFjaz4gbWVjID0geyBTdGFjaygxKSwgU3RhY2soMiksIFN0YWNrKDMpIH07CgogICAgaWYgKCB2ZWMgPT0gbWVjKQogICAgewogICAgICAgIHN0ZDo6Y291dCA8PCAidHJ1ZSIgPDwgc3RkOjplbmRsOwogICAgfQoKICAgIHJldHVybiAwOwp9