#pragma once #include #include "utils/total_ordering.hpp" class CharStr : public TotalOrdering { public: CharStr(const char *str) : str(str) {} friend bool operator==(const CharStr &lhs, const CharStr &rhs) { return strcmp(lhs.str, rhs.str) == 0; } friend bool operator<(const CharStr &lhs, const CharStr &rhs) { return strcmp(lhs.str, rhs.str) < 0; } private: const char *str; };