{"blog_url":"https://www.little-cuckoo.jp/","width":"100%","author_url":"https://blog.hatena.ne.jp/wata_d/","image_url":null,"provider_url":"https://hatena.blog","description":"std::remove \u306f\u5b9f\u969b\u306b\u306f\u8981\u7d20\u3092\u524a\u9664\u3057\u306a\u3044\u3088\u3068\u3044\u3046\u8a71\u3002 remove \u306f\u7b2c\u4e09\u5f15\u6570\u3068\u540c\u3058\u5024\u306e\u8981\u7d20\u3092\u30b3\u30f3\u30c6\u30ca\u306e\u672b\u5c3e\u306b\u79fb\u52d5\u3057\u3066\u3001\u6b8b\u3063\u305f\u8981\u7d20\u306e\u6700\u5f8c\u306e\u53cd\u5fa9\u5b50\u3092\u8fd4\u3059\u3060\u3051\u306a\u306e\u3067\u3001\u30b3\u30f3\u30c6\u30ca\u306e\u30b5\u30a4\u30ba\u306f\u5909\u5316\u3057\u306a\u3044\u3002\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u672c\u5f53\u306b\u524a\u9664\u3057\u305f\u3051\u308c\u3070 erase \u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u3002 unique \u306a\u3093\u304b\u3082\u305d\u3046\u3067\u3059\u306d\u3002 #include <iostream> #include <algorithm> #include <vector> using namespace std; struct print { void operator()(int n) { cout << n << endl; } }\u2026","version":"1.0","blog_title":"\u9591\u53e4\u9ce5","categories":["C++","programming"],"title":"erase-remove idiom","published":"2006-04-13 11:41:24","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060413%2F1144896084\" title=\"erase-remove idiom - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","author_name":"wata_d","url":"https://www.little-cuckoo.jp/entry/20060413/1144896084","type":"rich"}