<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pebble8888</author_name>
  <author_url>https://blog.hatena.ne.jp/pebble8888/</author_url>
  <blog_title>Pebble Coding</blog_title>
  <blog_url>https://pebble8888.hatenablog.com/</blog_url>
  <categories>
    <anon>C++17</anon>
  </categories>
  <description>C++17のstd::optionalはよいので積極的に使っていきましょう。 std::optional swiftのoptionalと同じようなことができるようになりました。 #include &lt;string&gt; #include &lt;optional&gt; struct Data { int x; int y; Data(int x, int y) : x(x) , y(y) { } }; std::optional&lt;Data&gt; makeData(int x, int y) { if (y == 0) { return std::nullopt; } return std::make_option…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2022%2F03%2F20%2F112543&quot; title=&quot;C++17のstd::optional - Pebble Coding&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>2022-03-20 11:25:43</published>
  <title>C++17のstd::optional</title>
  <type>rich</type>
  <url>https://pebble8888.hatenablog.com/entry/2022/03/20/112543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
