用char*作为map的key

如下声明:

struct cmp_str
{
    bool operator()(char const *a, char const *b)
    {
        return strcmp(a, b) < 0;
    }
};

static std::map<const char*, GhMemoryRecord*, cmp_str> g_oMemoryRecordAddressMap;

猜你喜欢

转载自blog.csdn.net/quantum7/article/details/86245188
今日推荐