diff --git a/include/boost/unordered/detail/implementation.hpp b/include/boost/unordered/detail/implementation.hpp index e51b0254..2d0830ea 100644 --- a/include/boost/unordered/detail/implementation.hpp +++ b/include/boost/unordered/detail/implementation.hpp @@ -2765,8 +2765,30 @@ struct table : boost::unordered::detail::functionsnext_ = node_pointer(); + } + } + + // Create container buckets. If the container already contains any buckets + // the linked list will be transferred to the new buckets, but none + // of the bucket pointers will be set. See above note. + // + // Strong exception safety. void create_buckets(std::size_t new_count) { std::size_t length = new_count + 1; @@ -2931,14 +2953,6 @@ struct table : boost::unordered::detail::functionsnext_ = node_pointer(); - } - } - void destroy_buckets() { bucket_pointer end = get_bucket(bucket_count_ + 1);