fixup! Add implementation
This commit is contained in:
parent
8165fc6f99
commit
bdccd17936
|
@ -18,13 +18,11 @@ public:
|
|||
auto const end_val = (*this)[end];
|
||||
underlying_.erase(underlying_.lower_bound(begin),
|
||||
underlying_.upper_bound(end));
|
||||
if (!((*this)[begin] == val)) {
|
||||
if (!((*this)[begin] == val))
|
||||
underlying_.insert({begin, val});
|
||||
}
|
||||
if (!((*this)[end] == end_val)) {
|
||||
if (!((*this)[end] == end_val))
|
||||
underlying_.insert({end, end_val});
|
||||
}
|
||||
}
|
||||
|
||||
V const& operator[](K const& key) const {
|
||||
auto it = underlying_.upper_bound(key);
|
||||
|
|
Loading…
Reference in a new issue