<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dNaga392</author_name>
  <author_url>https://blog.hatena.ne.jp/dNaga392/</author_url>
  <blog_title>カンテラの光の下で</blog_title>
  <blog_url>https://dnaga392.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++11</anon>
    <anon>Qt</anon>
  </categories>
  <description>クラスや構造体のソートには、標準ライブラリ &lt;algorithm&gt; の std::sort を使う方法があります。 Qt でも同様の qSort がありましたが、 std::sort に置き換えることが推奨されています。 次の例は、座標情報のリストに対して、第1ソート条件にX座標の逆順、第2ソート条件にY軸の正順を適用したものです。 QList&lt;QPoint&gt; points({{0, 4}, {2, 2}, {1, 3}, {3, 1}}); std::sort(points.begin(), points.end(), [](const QPoint&amp; p, const QPoint&amp; q)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdnaga392.hatenablog.com%2Fentry%2F2020%2F04%2F22%2F100000&quot; title=&quot;【C++】std::sort とラムダ式を使ったカスタムソート - カンテラの光の下で&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>https://m.media-amazon.com/images/I/7162o0aHClL._SL160_.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-22 10:00:00</published>
  <title>【C++】std::sort とラムダ式を使ったカスタムソート</title>
  <type>rich</type>
  <url>https://dnaga392.hatenablog.com/entry/2020/04/22/100000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
