{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20121103%2Fp1\" title=\"\u30bf\u30b0\u4ed8\u304d\u30bf\u30d7\u30eb\u578b - 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>","categories":["C++"],"title":"\u30bf\u30b0\u4ed8\u304d\u30bf\u30d7\u30eb\u578b","blog_url":"https://yohhoy.hatenadiary.jp/","image_url":null,"author_url":"https://blog.hatena.ne.jp/yohhoy/","type":"rich","width":"100%","author_name":"yohhoy","description":"C++\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3084Boost.Tuple\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u63d0\u4f9b\u3059\u308b\u30bf\u30d7\u30eb\u578b(tuple)\u3067\u306f\u3001\u30bf\u30d7\u30eb\u8981\u7d20\u3078\u306f\u30a4\u30f3\u30c7\u30af\u30b9\u6307\u5b9a\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3002\u30bf\u30d7\u30eb\u306e\u8981\u7d20\u30a2\u30af\u30bb\u30b9\u3092\u540d\u524d(\u30bf\u30b0)\u7d4c\u7531\u3067\u884c\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u30e1\u30e2\u3002\uff08\u6a5f\u80fd\u7684\u306b\u306f\u666e\u901a\u306e \u201c\u69cb\u9020\u4f53(struct)\u201d \u306b\u76f8\u5f53\u3002\uff09 #include <tuple> std::tuple<std::string, int, std::string> data = /*...*/; std::cout << std::get<1>(data) << std::endl; // index=1\u2192int\u578b\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9 \u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u306fStack Overflow\u3067\u898b\u3064\u3051\u305f\u8cea\u554f\u2026","url":"https://yohhoy.hatenadiary.jp/entry/20121103/p1","provider_name":"Hatena Blog","version":"1.0","published":"2012-11-03 00:00:00","height":"190","blog_title":"yohhoy\u306e\u65e5\u8a18"}