<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>joynote</author_name>
  <author_url>https://blog.hatena.ne.jp/joynote/</author_url>
  <blog_title>joynote break;</blog_title>
  <blog_url>https://joynote.hatenadiary.org/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++0x</anon>
  </categories>
  <description>bindが今までイマイチ理解できてなかったけど、書いてみたら一発で理解。 要は、function(関数ポインタ/関数オブジェクト/ラムダ式)の引数を束縛して新しいfunctionオブジェクトを生成してるのね。 #include &lt;functional&gt; #include &lt;iostream&gt; using namespace std; void Func(int a, int b) { cout &lt;&lt; a*b &lt;&lt; endl; } int main(){ // intの引数1つのfunction function&lt;void (int)&gt; func; // int引数2つのfunctionの片方を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjoynote.hatenadiary.org%2Fentry%2F20100723%2F1279868031&quot; title=&quot; std::bindをやっと理解 - joynote break;&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-07-23 15:53:51</published>
  <title> std::bindをやっと理解</title>
  <type>rich</type>
  <url>https://joynote.hatenadiary.org/entry/20100723/1279868031</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
