Untitled

mail@pastecode.io avatar
unknown
plain_text
5 days ago
388 B
1
Indexable
Never
    struct DStringPtrHash {
        uint64_t operator()(const DolphinString* str) const { return XXHash64(str->getData(), str->length()); }
    };
    struct DStringPtrEqual {
        bool operator()(const DolphinString* a, const DolphinString* b) const { return a->compare(*b) == 0; }
    };

    tsl::ordered_map<DolphinString*, INDEX, DStringPtrHash, DStringPtrEqual> mp(len);
Leave a Comment