{"url":"https://inamori.hateblo.jp/entry/20100822/p1","published":"2010-08-22 00:00:00","width":"100%","author_name":"inamori","version":"1.0","provider_url":"https://hatena.blog","title":"range","image_url":null,"categories":["C++"],"blog_title":"inamori\u2019s diary","height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/inamori/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100822%2Fp1\" title=\"range - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"Python\u306eitertools\u3092\u4f7f\u3063\u305f\u3088\u3046\u306a\u66f8\u304d\u65b9\u304cC++\u3067\u3082\u3067\u304d\u308b\u3088\u3046\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u4f8b\u3048\u3070\u30011\u304b\u308910\u306e\u548c\u3092\u6c42\u3081\u308b\u3068\u304d\u306b\u3053\u3046\u66f8\u3051\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002 cout << sum(range(1, 11)) << endl; Python\u306exrange\u3084takewhile\u3092\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u5b9f\u73fe\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306f\u3001cIterable\u3092\u7d99\u627f\u3057\u307e\u3059\u3002T\u306f\u767a\u751f\u3059\u308b\u5024\u306e\u578b\u3067\u3059\u3002 template<typename T> class cIterable { public: virtual ~cIterable() { } virtual bool exists_next() = 0; v\u2026","blog_url":"https://inamori.hateblo.jp/","type":"rich"}