{"provider_url":"https://hatena.blog","url":"https://w0.hatenablog.com/entry/20060523/p2","provider_name":"Hatena Blog","width":"100%","categories":["c++"],"blog_title":"w_o\u2019s diary","version":"1.0","author_name":"w_o","blog_url":"https://w0.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fw0.hatenablog.com%2Fentry%2F20060523%2Fp2\" title=\" \u30a4\u30c6\u30ec\u30fc\u30bf - w_o\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>","title":" \u30a4\u30c6\u30ec\u30fc\u30bf","author_url":"https://blog.hatena.ne.jp/w_o/","description":"\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u7d20\u6674\u3089\u3057\u3055\u306b\u3088\u3046\u3084\u304f\u6c17\u4ed8\u3044\u305f\u308f\u3051\u306a\u3093\u3060\u3051\u3069\u3001STL\u306e\u30a4\u30c6\u30ec\u30fc\u30bf\u306f\u300c\u4f55\u3092\u3084\u3063\u305f\u3089\u30a4\u30c6\u30ec\u30fc\u30bf\u304c\u7121\u52b9\u306b\u306a\u308b\u304b\u3044\u307e\u3044\u3061\u308f\u304b\u3089\u3093\u300d\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308b\u3002 /* \u5f15\u6570\u306b\u6e21\u305b\u308b\u30b3\u30f3\u30c6\u30ca\u306f\uff1f */ template < typename T, typename Pred > void nanika( T &c, Pred p ) { T::iterator end = c.end(); for ( T::iterator i = c.begin(); i != end; i++ ) { if ( p( *i ) ){ c.push_back( *i ); } } }\u3053\u3053\u3089\u3078\u3093\u306f\u3001\u52b9\u7387\u512a\u5148\u2026","type":"rich","published":"2006-05-23 00:00:02","image_url":null,"height":"190"}