提高::升压系列化:: unordered_map [英] boost::serialization of boost::unordered_map

查看:124
本文介绍了提高::升压系列化:: unordered_map的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搬到从STD对插入的性能优势我的成员变量之一::映射到一个boost :: unordered_map。然而,这打破了我的出口提振使用序列化/从归档中导入。

I've moved one of my member variables from a std::map to a boost::unordered_map for the performance benefits on insertion. However, this has broken my use of boost serialization for export/importing from an archive.

我试着寻找,但无论如何不能找到它,我在想,如果有一个头我可能包括将提供系列化这一类?

I've tried looking but can't find it anyway, I was wondering if there was a header I could include that would provide serialization to this class?

非常感谢。

推荐答案

在看一看<一个href=\"http://$c$c.google.com/p/ntest/source/browse/unordered_map_serialization.h\">unordered_map_serialization.h在我的分布式开放书本知识的项目。它应该是你在找什么。

Have a look at unordered_map_serialization.h in my distributed opening book learning project. It should be what you're looking for.

这篇关于提高::升压系列化:: unordered_map的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆