| 5 | #include <string> |
| 6 | |
| 7 | struct int_entry { |
| 8 | int value; |
| 9 | |
| 10 | int_entry() : value(0) { |
| 11 | } |
| 12 | |
| 13 | int_entry(int v) : value(v) { |
| 14 | } |
| 15 | |
| 16 | std::string to_string() const { |
| 17 | return "int_entry(" + std::to_string(value) + ")"; |
| 18 | } |
| 19 | |
| 20 | bool operator==(const int_entry& e) const { |
| 21 | return value == e.value; |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | int main(int, char*[]) { |
| 26 |