| 64 | static ReverseKeyComparator reverse_key_comparator; |
| 65 | |
| 66 | static void Increment(const Comparator* cmp, std::string* key) { |
| 67 | if (cmp == BytewiseComparator()) { |
| 68 | key->push_back('\0'); |
| 69 | } else { |
| 70 | assert(cmp == &reverse_key_comparator); |
| 71 | std::string rev = Reverse(*key); |
| 72 | rev.push_back('\0'); |
| 73 | *key = Reverse(rev); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | // An STL comparator that uses a Comparator |
| 78 | namespace { |
no test coverage detected