{"blog_url":"https://inamori.hateblo.jp/","published":"2010-08-30 00:00:00","type":"rich","author_name":"inamori","image_url":null,"description":"Python\u306ecount\u306f\u6307\u5b9a\u3057\u305f\u6570\u304b\u3089\u9806\u306b\u6574\u6570\u3092\u51fa\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u5f15\u6570\u3067\u516c\u5dee\u3082\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002 class cCount : public cIterable<int> { int current; int delta; public: cCount(int s, int d) : current(s - d), delta(d) { } bool exists_next() { current += delta; return true; } int value() const { return current; } }; shared_ptr<cIterable<int\u2026","height":"190","blog_title":"inamori\u2019s diary","url":"https://inamori.hateblo.jp/entry/20100830/p1","provider_name":"Hatena Blog","width":"100%","title":"count","version":"1.0","author_url":"https://blog.hatena.ne.jp/inamori/","categories":["C++"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100830%2Fp1\" title=\"count - 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>","provider_url":"https://hatena.blog"}