<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++11 では __func__ という識別子が追加され、関数名が文字列で取得する事が出来ます。 #include &lt;iostream&gt; namespace my{ template&lt;typename T, typename U&gt; auto plus(T a, U b){ // 現在の関数の名前を取得できる std::cout &lt;&lt; __func__ &lt;&lt; std::endl; return a + b; } } int main(){ std::cout &lt;&lt; my::plus(1, 2) &lt;&lt; std::endl; return 0; } /* output: plus 3 */ GCC…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F10%2F23%2F234527&quot; title=&quot;GCC の __PRETTY_FUNCTION__ 識別子 - Secret Garden(Instrumental)&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>2017-10-23 23:45:27</published>
  <title>GCC の __PRETTY_FUNCTION__ 識別子</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2017/10/23/234527</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
