boostorg / unordered

Boost.org unordered module
http://boost.org/libs/unordered
Boost Software License 1.0
63 stars 55 forks source link

range insertion in concurrent containers does not return number of elements inserted #284

Closed joaquintides closed 1 month ago

joaquintides commented 1 month ago

boost::concurrent_flat_map range insertion (from a pair of iterators or a std::initializer_list) is documented as returning the number of elements inserted, yet the implementation's return type is void:

https://github.com/boostorg/unordered/blob/4c0aea983ebec4a9491381e7e4f3a9da844d19ba/include/boost/unordered/concurrent_flat_map.hpp#L421-L427

Same for visitation-enabled variants, and for all concurrent containers.