{"title":"min_element + indexed","image_url":null,"description":"\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u305f\u304b\u3063\u305f\uff0e auto min = boost::min_element(rng | boost::adaptors::indexed(0), pred); // error auto i = min.index(); Range\u304c\u4f55\u3067\u3042\u308cindexed\u3092\u901a\u3059\u3068SinglePassRange\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3093\u3067\u3059\u306d\uff0e \u3067\u3082\u3063\u3066min_element\u306f\u6bd4\u8f03\u306e\u305f\u3081\u306b\u8907\u6570\u56de\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u3067\u5f53\u7136SinglePass\u3067\u306fAssert\u306b\u5f15\u3063\u304b\u304b\u308a\u52d5\u304b\u305a\uff0c\u6b8b\u5ff5\uff0e \u4f55\u304b\u4e0a\u624b\u3044\u65b9\u6cd5\u3042\u308b\u3093\u3067\u3057\u3087\u3046\u304b\uff0e indexed\u306f\u53d7\u3051\u53d6\u3063\u305fRange\u306ePass\u7d99\u627f\u3092\u3059\u308b\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306b\u3082\u3067\u304d\u306a\u304f\u306f\u7121\u3044\u6c17\u304c\u3057\u307e\u3059\uff0e\u2026","author_name":"yuhsylphy","url":"https://yuhsylphy.hateblo.jp/entry/20121224/1356278532","provider_name":"Hatena Blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/yuhsylphy/","published":"2012-12-24 01:02:12","blog_url":"https://yuhsylphy.hateblo.jp/","width":"100%","categories":["C++","boost"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuhsylphy.hateblo.jp%2Fentry%2F20121224%2F1356278532\" title=\"min_element + indexed - \u3057\u308b\u3075\u3043\u305a\u3080\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","blog_title":"\u3057\u308b\u3075\u3043\u305a\u3080","height":"190"}