<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mahou_ptr</author_name>
  <author_url>https://blog.hatena.ne.jp/mahou_ptr/</author_url>
  <blog_title>ゲーム作りは楽しい</blog_title>
  <blog_url>https://mahou-ptr.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>技術</anon>
  </categories>
  <description>はじめに C++23やC++26で多くの関数がconstexpr対応しましたが、 コンパイラが対応済みかは話が別… そこでこの関数はconstexpr評価できるかどうかを調べるメタ関数が作れそうか調べておりました。 メタ関数 #include &lt;type_traits&gt; template&lt;auto Lambda&gt; struct is_constexpr { private: template&lt;class L, int=(L{}(), 0)&gt; static consteval bool impl(L) { return true; } static consteval bool impl(...…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmahou-ptr.hatenablog.com%2Fentry%2F2024%2F05%2F25%2F020752&quot; title=&quot; constexprで評価できるかどうか判定するメタ関数 - ゲーム作りは楽しい&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>2024-05-25 02:07:52</published>
  <title> constexprで評価できるかどうか判定するメタ関数</title>
  <type>rich</type>
  <url>https://mahou-ptr.hatenablog.com/entry/2024/05/25/020752</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
