| 28 | using key_type = K; |
| 29 | |
| 30 | struct result { |
| 31 | typename map::iterator it; |
| 32 | |
| 33 | result(typename map::iterator it) : it(it) {} |
| 34 | |
| 35 | result& operator++() { |
| 36 | ++it; |
| 37 | return *this; |
| 38 | } |
| 39 | |
| 40 | const K& operator*() const { return it.key(); } |
| 41 | |
| 42 | const K& operator->() const { return it.key(); } |
| 43 | |
| 44 | bool operator==(result const& k) const { return it == k.it; } |
| 45 | bool operator!=(result const& k) const { return !(*this == k); } |
| 46 | }; |
| 47 | |
| 48 | map s; |
| 49 |
no test coverage detected