Boost.Intrusive and unordered_map

前端 未结 2 1894
不知归路
不知归路 2021-02-08 06:45

I am looking to use an intrusive unordered_map. For some reason there is only an unordered_set in the library. There is also an intrusive hashtable but I\'m not sure it has the

2条回答
  •  半阙折子戏
    2021-02-08 07:41

    It's been a long time since this question has been asked, but I think people coming here should be interested on how to use an unordered_set as a map. The solution is to use advanced insertions methods: one just has to store a key and its value in the same value_type, and insert it using insert_check and insert_commit.

提交回复
热议问题