From d9515fdc2fdba6013939934e54d068c24a93e6bb Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Thu, 23 Mar 2023 10:59:29 -0700 Subject: [PATCH] Add insert(initializer_list) --- include/boost/unordered/concurrent_flat_map.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/unordered/concurrent_flat_map.hpp b/include/boost/unordered/concurrent_flat_map.hpp index c21660b8..34963c84 100644 --- a/include/boost/unordered/concurrent_flat_map.hpp +++ b/include/boost/unordered/concurrent_flat_map.hpp @@ -139,6 +139,11 @@ namespace boost { } } + void insert(std::initializer_list ilist) + { + this->insert(ilist.begin(), ilist.end()); + } + template std::size_t visit_all(F f) { return table_.visit_all(std::move(f)); @@ -147,6 +152,7 @@ namespace boost { /// Hash Policy /// void rehash(size_type n) { table_.rehash(n); } + void reserve(size_type n) { table_.reserve(n); } }; } // namespace unordered } // namespace boost