<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>いつもすぐ忘れるdecay(ディケイ、と読む)メタ関数の機能、その備忘記です。 Boost.TypeTraitsからC++11のヘッダに入ったstd::decayメタ関数は、配列と関数に関して、関数テンプレートの型推論時に行われる型変換と同じことを行います。 関数テンプレートでは、配列型(T[N])はポインタ(T*)に変換されます。また、関数型(R(Args...))は関数ポインタ(R(*)(Args...))に変換されます。std::decayメタ関数に配列型を渡すとポインタ型が返され、関数型を渡すと関数ポインタ型が返されます。 以下、検証用コード： #include &lt;iostream&gt; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20120416%2F1334563367&quot; title=&quot; decayメタ関数 - Faith and Brave - 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>2012-04-16 17:02:47</published>
  <title> decayメタ関数</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20120416/1334563367</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
