{"provider_url":"https://hatena.blog","title":"dropwhile","author_url":"https://blog.hatena.ne.jp/inamori/","height":"190","provider_name":"Hatena Blog","type":"rich","version":"1.0","author_name":"inamori","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20100916%2Fp1\" title=\"dropwhile - 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>","image_url":null,"blog_title":"inamori\u2019s diary","description":"takewhile\u3068\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u306e\u3068\u3053\u308d\u3042\u307e\u308a\u4f7f\u3044\u307e\u305b\u3093\u3002 \u53d9\u8ff0\u95a2\u6570\u304ctrue\u306e\u9593\u306f\u5024\u3092\u51fa\u3057\u307e\u305b\u3093\u3002 template<typename T, typename U> class cDropWhile : public cIterable<T> { U pred; std::shared_ptr<cIterable<T>> gen; bool first; public: cDropWhile(U p, std::shared_ptr<cIterable<T>> g) : pred(p), gen(g), first(true) { } bool exists_next() { if(fi\u2026","published":"2010-09-16 00:00:00","categories":["C++"],"blog_url":"https://inamori.hateblo.jp/","url":"https://inamori.hateblo.jp/entry/20100916/p1","width":"100%"}