<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dtdynamics</author_name>
  <author_url>https://blog.hatena.ne.jp/dtdynamics/</author_url>
  <blog_title>DTダイナミクス テックブログ</blog_title>
  <blog_url>https://techblog.dt-dynamics.com/</blog_url>
  <categories>
  </categories>
  <description>ごあいさつ こんにちは。meviy形状処理チームの志田です。 弊社では数年前にRustが導入され、その適用範囲は徐々に拡大しています。 （Rust導入の経緯についてはこちらの記事をご覧ください） しかし現在でも、C++を書く必要がある場面は少なくありません。そんな時、Rustを触り始めて便利さを実感している私としては「Rustのあの機能がC++でも使えたらなあ...」と感じることがよくあります。 特に強く感じるのが、パターンマッチ構文の恩恵です。 現状、C++にはパターンマッチ構文がないため、std::variantの分岐処理をRustのように簡潔に記述できません。 そこで今回は、C++でもパ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftechblog.dt-dynamics.com%2Fentry%2F2026%2F02%2F09%2F110224&quot; title=&quot;C++でもパターンマッチ（のようなもの）がしたい - DTダイナミクス テックブログ&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>2026-02-09 11:02:24</published>
  <title>C++でもパターンマッチ（のようなもの）がしたい</title>
  <type>rich</type>
  <url>https://techblog.dt-dynamics.com/entry/2026/02/09/110224</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
