<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>汎用クラスでメンバ関数の実装部分での記述の仕方で戸惑ったのでメモ。 template &lt;class T型&gt; 返り値の型 クラス名&lt;T型&gt;::メンバ関数名(仮引数リスト) { ... } たとえば汎用型を返すメンバ関数の場合は次のような感じ。 #include &lt;iostream&gt; using namespace std; template &lt;class T&gt; class Test { T mValue; public: void set(int i) { mValue = i; } T get(); }; template &lt;class T&gt; T Test&lt;T&gt;::get() // Tを返すメ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090119%2F1232379005&quot; title=&quot;汎用クラスその3 - ゲームが作れるようになるまでがんばる日記&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>2009-01-19 00:30:05</published>
  <title>汎用クラスその3</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20090119/1232379005</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
