<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekko1119</author_name>
  <author_url>https://blog.hatena.ne.jp/nekko1119/</author_url>
  <blog_title>C++と色々</blog_title>
  <blog_url>https://nekko1119.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++17にはstd::variantというライブラリが追加されます。 variantは組み込みのunionよりリッチなインターフェイスを持った型安全なunionです。*1 Visual Studio 2017にも入りましたので簡単なサンプルを書いてみました #include &lt;variant&gt; #include &lt;iostream&gt; #include &lt;string&gt; struct visitor { void operator()(int) const { std::cout &lt;&lt; &quot;it's int&quot; &lt;&lt; std::endl; } void operator()(std::string…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2016%2F11%2F21%2F060928&quot; title=&quot;std::variant - C++と色々&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-11-21 06:09:28</published>
  <title>std::variant</title>
  <type>rich</type>
  <url>https://nekko1119.hatenablog.com/entry/2016/11/21/060928</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
