{"title":"\u914d\u5217\u4e2d\u306b\u6700\u3082\u5c0f\u3055\u306a\u5024\u304c\u8907\u6570\u5b58\u5728\u3059\u308b\u6642\u306e min_element \u306e\u6319\u52d5","height":"190","type":"rich","blog_url":"https://www.little-cuckoo.jp/","provider_name":"Hatena Blog","image_url":null,"provider_url":"https://hatena.blog","version":"1.0","url":"https://www.little-cuckoo.jp/entry/20060307/1141702953","author_name":"wata_d","blog_title":"\u9591\u53e4\u9ce5","categories":["C++","programming","\u4ed5\u4e8b"],"description":"\u898f\u683c\u3067\u306f\u6700\u521d\u306b\u898b\u3064\u304b\u3063\u305f\u53cd\u5fa9\u5b50 (Iterator) \u304c\u8fd4\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306b\u306f\u60b2\u3057\u3044\u7d50\u679c\u304c\u5f85\u3063\u3066\u3044\u308b\u3002 #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)); // \u3053\u3053\u3067\u6b7b\u306c assert(data == std::max_element(data, last));\u2026","author_url":"https://blog.hatena.ne.jp/wata_d/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060307%2F1141702953\" title=\"\u914d\u5217\u4e2d\u306b\u6700\u3082\u5c0f\u3055\u306a\u5024\u304c\u8907\u6570\u5b58\u5728\u3059\u308b\u6642\u306e min_element \u306e\u6319\u52d5 - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2006-03-07 12:42:33","width":"100%"}