diff --git a/single_include/toml.hpp b/single_include/toml.hpp index 504ff9e..9a987da 100644 --- a/single_include/toml.hpp +++ b/single_include/toml.hpp @@ -3461,6 +3461,32 @@ class ordered_map : detail::ordered_map_ebo_container return iter->second; } + iterator erase(iterator pos) + { + return container_.erase(pos); + } + + iterator erase(const_iterator pos) + { + return container_.erase(pos); + } + + iterator erase(const_iterator first, const_iterator last) + { + return container_.erase(first, last); + } + + size_type erase(const key_type& key) + { + auto it = this->find(key); + if (it != this->end()) + { + container_.erase(it); + return 1; + } + return 0; + } + mapped_type& operator[](const key_type& k) { const auto iter = this->find(k);