{"categories":["C++"],"author_url":"https://blog.hatena.ne.jp/osyo-manga/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F05%2F23%2F152601\" title=\"C++14 \u3067\u8907\u6570\u306e\u623b\u308a\u5024\u3092\u8fd4\u3059 - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-05-23 15:26:01","type":"rich","width":"100%","author_name":"osyo-manga","url":"https://secret-garden.hatenablog.com/entry/2016/05/23/152601","provider_url":"https://hatena.blog","blog_title":"Secret Garden(Instrumental)","height":"190","blog_url":"https://secret-garden.hatenablog.com/","version":"1.0","description":"std::tuple \u3092\u4f7f\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001C++14 \u306e\u5834\u5408\u306f\u5185\u90e8\u30af\u30e9\u30b9\u3092\u623b\u308a\u5024\u3068\u3057\u3066\u8fd4\u3059\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002 [\u30b3\u30fc\u30c9] #include <iostream> auto calculate(int x, int y){ struct result_t{ int add; int sub; }; auto a = x + y; auto s = x - y; return result_t{ a, s }; return 0; } int main(){ auto result = calculate(3, 2); std::cout << result.add << std::endl; \u2026","provider_name":"Hatena Blog","title":"C++14 \u3067\u8907\u6570\u306e\u623b\u308a\u5024\u3092\u8fd4\u3059"}