<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gofres</author_name>
  <author_url>https://blog.hatena.ne.jp/gofres/</author_url>
  <blog_title>gofres’s diary</blog_title>
  <blog_url>https://gofres.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>私用メモ テンプレート ・型ごとにいちいち関数やクラスを作るのは面倒 ・操作があらかじめ決まっているので、それを任意の型の変数を扱う際にコピべする以外のやり方がほしい時に使う ・template&lt;class T&gt; T function(T a, T b){} などと宣言を書く。通常はヘッダファイルに入れる。仮の型としてTと書いてあるところ(書き方は決まってなくて仮の文字はTでなくても良い)にintとか任意の型を書いて使い回せる ・一度定義しておけば int function(int a, int b) などと任意の型を入れて使う。型はクラスでも良い。 operator ・operator・・・…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgofres.hatenablog.com%2Fentry%2F2020%2F01%2F26%2F233340&quot; title=&quot;C++ を触ってのメモ１(テンプレート、Operator) - gofres’s diary&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>2020-01-26 23:33:40</published>
  <title>C++ を触ってのメモ１(テンプレート、Operator)</title>
  <type>rich</type>
  <url>https://gofres.hatenablog.com/entry/2020/01/26/233340</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
