diff --git a/ostd/unordered_map.hh b/ostd/unordered_map.hh index 320bf69..15eb971 100644 --- a/ostd/unordered_map.hh +++ b/ostd/unordered_map.hh @@ -38,11 +38,11 @@ template< typename E = std::equal_to, typename A = std::allocator>, typename R > -inline std::unordered_map make_unordered_map( +inline std::unordered_map make_unordered_map( R range, size_t bcount = 1, H const &hash = H{}, E const &kequal = E{}, A const &alloc = A{} ) { - std::unordered_map ret{bcount, hash, kequal, alloc}; + std::unordered_map ret{bcount, hash, kequal, alloc}; using C = RangeCategory; if constexpr(std::is_convertible_v) { /* at least try to preallocate here... */ @@ -64,14 +64,14 @@ template< > inline std::unordered_map< typename RangeValue::first_type, - typename RangeValue::second_type + typename RangeValue::second_type, H, E, A > make_unordered_map( R &&range, size_t bcount = 1, H const &hash = H{}, E const &kequal = E{}, A const &alloc = A{} ) { return make_unordered_map< typename RangeValue::first_type, - typename RangeValue::second_type + typename RangeValue::second_type, H, E, A >(std::forward(range), bcount, hash, kequal, alloc); }