<?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>C++17 では Boost.Optional が新しく標準ライブラリ入りしました。 Boost.Optional で無効値を指定する場合は boost::none を使っていたんですが、標準ライブラリの std::optional では std::nullopt を使用して無効値を指定します。 [ソースコード] #include &lt;optional&gt; #include &lt;iostream&gt; template&lt;typename T&gt; void print(std::optional&lt;T&gt; const&amp; op){ if( op ){ std::cout &lt;&lt; &quot;OK:&quot; &lt;&lt; * op &lt;&lt; s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F06%2F22%2F161953&quot; title=&quot;C++17 の std::optional に無効値を設定する - 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>2017-06-22 16:19:53</published>
  <title>C++17 の std::optional に無効値を設定する</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2017/06/22/161953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
