<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gamelinks007</author_name>
  <author_url>https://blog.hatena.ne.jp/gamelinks007/</author_url>
  <blog_title>ゲームリンクスの徒然なる日常</blog_title>
  <blog_url>https://gamelinks007.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>はじめに C++版LINKSでのゲームメニューがかなり冗長だった(メニュー項目分だけ異なる関数を呼び出す形になってたから)ので、短くできないかなーと思い色々調べてたのが事のきっかけ で、色々調べてたらstd::arrayに関数オブジェクトとして格納できるらしい……？ということを知ったので試してみた。 実際のコードはこちら wandbox.org やってること std::fuctionを使ってラムダ式を関数オブジェクトとして受け取る。 std::function&lt;void(void)&gt; func1 = []{ std::cout &lt;&lt; &quot;func1&quot; &lt;&lt; std::endl; return 0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgamelinks007.hatenablog.com%2Fentry%2F2018%2F07%2F07%2F221651&quot; title=&quot;C++のstd::functionを触ってみた - ゲームリンクスの徒然なる日常&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>2018-07-07 22:16:51</published>
  <title>C++のstd::functionを触ってみた</title>
  <type>rich</type>
  <url>https://gamelinks007.hatenablog.com/entry/2018/07/07/221651</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
