STL类的序列化 [英] Serialization of STL Class

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

问题描述

是否可能序列化任何STL类包括std :: string?我有一组std ::字符串,我试图将它们写入文件并加载到std :: set。

is it possible serialize any STL class including std::string? I've a sets of std::strings and I'm trying to write them into file and load them back into std::set.

推荐答案

是的,这是可能的。例如,使用 boost.serialization

对于STL,请阅读相应的教程部分

这篇关于STL类的序列化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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