Merged with upstream repo.

This commit is contained in:
Colin Gaudreau
2020-08-09 20:59:33 -05:00
4 changed files with 15 additions and 19 deletions
+2
View File
@@ -3434,6 +3434,8 @@ public:
return modify_if_impl<K, F, Lockable::UniqueLock>(key, std::forward<F>(f));
}
template <class K = key_type, class P = Policy, K* = nullptr>
MappedReference<P> operator[](key_arg<K>&& key) {
return Policy::value(&*try_emplace(std::forward<K>(key)).first);