<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>std::tuple を使ってもいいのですが、C++14 の場合は内部クラスを戻り値として返すことも出来ます。 [コード] #include &lt;iostream&gt; 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 &lt;&lt; result.add &lt;&lt; std::endl; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2016%2F05%2F23%2F152601&quot; title=&quot;C++14 で複数の戻り値を返す - Secret Garden(Instrumental)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-23 15:26:01</published>
  <title>C++14 で複数の戻り値を返す</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2016/05/23/152601</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
