fix(util/rb_multi_map): no duplicate values
This commit is contained in:
parent
c923120db5
commit
8f4bc7e0ba
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ public:
|
|||
}
|
||||
void insert(T const & t, V const & v) {
|
||||
if (auto it = m_map.find(t))
|
||||
m_map.insert(t, cons(v, *it));
|
||||
m_map.insert(t, cons(v, ::lean::filter(*it, [&](V const & v2) { return v != v2; })));
|
||||
else
|
||||
m_map.insert(t, to_list(v));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue