<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiharunpo</author_name>
  <author_url>https://blog.hatena.ne.jp/chiharunpo/</author_url>
  <blog_title>Chiharu の日記</blog_title>
  <blog_url>https://chiharunpo.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>バリアントの配列を文字列から生成して遊んでみました。テンプレートを使うと型情報による switch &amp; case がなくて気持ちいいですね。C++17 以降の環境なら Variant には std::variant&lt;&gt; を使うべきでしょうけれども。 #include &lt;string&gt; #include &lt;sstream&gt; #include &lt;vector&gt; #include &lt;memory&gt; #include &lt;stdexcept&gt; // boost::lexical_cast&lt;&gt; みたいなもの struct Lexer { template &lt;class Type&gt; static Type …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiharunpo.hatenablog.com%2Fentry%2F20180804%2F1533350618&quot; title=&quot;バリアントの配列 - Chiharu の日記&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>2018-08-04 11:43:38</published>
  <title>バリアントの配列</title>
  <type>rich</type>
  <url>https://chiharunpo.hatenablog.com/entry/20180804/1533350618</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
