<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>ラムダ式(lambda expression)とは 要するに名前のない関数 (無名関数、匿名関数)、その場で書く関数 (関数リテラル) 値と同じように変数に代入したり関数に渡したりできる。 C#とC++では微妙に書き方が違う。 C#は (引数) =&gt; {処理} C++は [キャプチャ](引数) -&gt; 戻り値 {処理} 正確に言うと、C#のラムダ式はdelegateを作る糖衣構文だけど、以下では雑な説明をする。 ラムダ式を変数に代入 // C# Action hoge = () =&gt; { Console.WriteLine(&quot;Hello, world!&quot;); }; hoge(); // C++ …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F2018%2F11%2F05%2F114611&quot; title=&quot;C#と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>2018-11-05 11:46:11</published>
  <title>C#とC++のラムダ式</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/2018/11/05/114611</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
