<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>programming</anon>
    <anon>仕事</anon>
  </categories>
  <description>規格では最初に見つかった反復子 (Iterator) が返るようになっているため、下記のようなコードには悲しい結果が待っている。 #include #include int main(int, char*) { double data = { 5, 4, 3, 2, 1, 1 }; double* last = data + sizeof(data) / sizeof(data[0]); assert(last - 1 == std::min_element(data, last)); // ここで死ぬ assert(data == std::max_element(data, last));…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060307%2F1141702953&quot; title=&quot;配列中に最も小さな値が複数存在する時の min_element の挙動 - 閑古鳥&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>2006-03-07 12:42:33</published>
  <title>配列中に最も小さな値が複数存在する時の min_element の挙動</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20060307/1141702953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
