unordered-map

    3熱度

    1回答

    我只是試驗boost :: pool,看看它是一個更快的分配器,我正在使用的東西,但我不知道如何使用它與boost :: unordered_map: 這是一個代碼片段: unordered_map<int,int,boost::hash<int>, fast_pool_allocator<int>> theMap; theMap[1] = 2; 以下是編譯錯誤,我得到: 錯誤3錯誤C206