2015-06-24から1日間の記事一覧
sorted vectorに対し、lower_boundで指定値以上、以下のデータを削除するC++のサンプルです。 覚えられないのでメモ。 #include <vector> int main(int argc, const char * argv[]) { auto description = [](std::vector<int> v){ for( auto value : v ){ printf( "%d\n",</int></vector>…
sorted vectorに対し、lower_boundで指定値以上、以下のデータを削除するC++のサンプルです。 覚えられないのでメモ。 #include <vector> int main(int argc, const char * argv[]) { auto description = [](std::vector<int> v){ for( auto value : v ){ printf( "%d\n",</int></vector>…