<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Flast</author_name>
  <author_url>https://blog.hatena.ne.jp/Flast/</author_url>
  <blog_title>にゃははー</blog_title>
  <blog_url>https://flast.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>適当なクラスとか作ってSTLのアルゴリズムとかの為にoperatorオーバーロードすることって多いと思うけど、1つのクラスに対していくつかの比較関数を定義したいときにどうするか問題が出てくる。 そこで気がついたんだけど、使用するときに任意のメンバを比較出来るようにしたら最強だと思う。そこでメンバポインタ演算子を駆使してこんな関数オブジェクトを作ってみた。 #include &lt;functional&gt; template &lt; typename class_t, typename field_t, field_t class_t::*_field, typename comp_t = std::les…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflast.hateblo.jp%2Fentry%2F20100509%2F1273381158&quot; title=&quot;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>2010-05-09 13:59:18</published>
  <title>c++の演算子が変態</title>
  <type>rich</type>
  <url>https://flast.hateblo.jp/entry/20100509/1273381158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
