0133はちみつ餃子 ◆8X2XSCHEME 垢版2017/07/29(土) 08:10:20.47ID:HavpCAcr >>131 std::remove_copy_if を使うのが一番簡単な方法だと思う。 std::remove_copy_if(std::begin(map1), std::begin(map2), std::inserter(map2, std::end(map2)), [](decltype(map2)::value_type x) { return x.second < 0; }); みたいな感じ。