{"type":"rich","description":"C++11\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305fstd::to_string\u95a2\u6570\u306b\u3064\u3044\u3066\u30e1\u30e2*1\u3002\u7d44\u307f\u8fbc\u307f\u6570\u5024\u578b\uff08int\u3084double\uff09\u304b\u3089\u6587\u5b57\u5217\u30af\u30e9\u30b9std::string\u306b\u5909\u63db\u3059\u308b\u3002\u5909\u63db\u51e6\u7406\u306fsprintf\u76f8\u5f53\u3067\u884c\u308f\u308c\u308b\uff08\u66f8\u5f0f\u6307\u5b9a\u6587\u5b57\u5217\u306b\u3064\u3044\u3066\u306f\u5f8c\u8ff0\uff09\u3002 #include <string> auto s1 = std::to_string(42); assert(s1 == \"42\"); auto s2 = std::to_string(3.14); assert(s2 == \"3.14\"); Boost.Lexical_Cast\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3082\u4ee3\u66ff\u53ef\u80fd\u3002 #include <boost/lexi\u2026","width":"100%","url":"https://yohhoy.hatenadiary.jp/entry/20120408/p1","version":"1.0","height":"190","categories":["C++","Boost"],"author_name":"yohhoy","blog_url":"https://yohhoy.hatenadiary.jp/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120408%2Fp1\" title=\"to_string\u95a2\u6570 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2012-04-08 00:00:00","author_url":"https://blog.hatena.ne.jp/yohhoy/","image_url":null,"title":"to_string\u95a2\u6570","blog_title":"yohhoy\u306e\u65e5\u8a18"}