library/superstd/Map.hpp
- View this file on GitHub
- Last update: 2025-11-24 18:49:07+09:00
- Include:
#include "library/superstd/Map.hpp"
Depends on
Code
template <typename Key, typename Val> struct Map : std::map<Key, Val> {
using std::map<Key, Val>::erase;
void operator()(Key key, Val val) {
if (!((*this)[key] += val))
erase(key);
}
};#line 1 "library/superstd/Map.hpp"
template <typename Key, typename Val> struct Map : std::map<Key, Val> {
using std::map<Key, Val>::erase;
void operator()(Key key, Val val) {
if (!((*this)[key] += val))
erase(key);
}
};