| 49 | class Alloc = allocator<pair<const Key, Value>> |
| 50 | > |
| 51 | class unordered_map |
| 52 | { |
| 53 | public: |
| 54 | using key_type = Key; |
| 55 | using mapped_type = Value; |
| 56 | using value_type = pair<const key_type, mapped_type>; |
| 57 | using hasher = Hash; |
| 58 | using key_equal = Pred; |
| 59 | using allocator_type = Alloc; |
| 60 | using pointer = typename allocator_traits<allocator_type>::pointer; |
| 61 | using const_pointer = typename allocator_traits<allocator_type>::const_pointer; |
| 62 | using reference = value_type&; |
| 63 | using const_reference = const value_type&; |
| 64 | using size_type = size_t; |
| 65 | using difference_type = ptrdiff_t; |
| 66 | |
| 67 | using iterator = aux::hash_table_iterator< |
| 68 | value_type, reference, pointer, size_type |
| 69 | >; |
| 70 | using const_iterator = aux::hash_table_const_iterator< |
| 71 | value_type, const_reference, const_pointer, size_type |
| 72 | >; |
| 73 | using local_iterator = aux::hash_table_local_iterator< |
| 74 | value_type, reference, pointer |
| 75 | >; |
| 76 | using const_local_iterator = aux::hash_table_const_local_iterator< |
| 77 | value_type, const_reference, const_pointer |
| 78 | >; |
| 79 | |
| 80 | unordered_map() |
| 81 | : unordered_map{default_bucket_count_} |
| 82 | { /* DUMMY BODY */ } |
| 83 | |
| 84 | explicit unordered_map(size_type bucket_count, |
| 85 | const hasher& hf = hasher{}, |
| 86 | const key_equal& eql = key_equal{}, |
| 87 | const allocator_type& alloc = allocator_type{}) |
| 88 | : table_{bucket_count, hf, eql}, allocator_{alloc} |
| 89 | { /* DUMMY BODY */ } |
| 90 | |
| 91 | template<class InputIterator> |
| 92 | unordered_map(InputIterator first, InputIterator last, |
| 93 | size_type bucket_count = default_bucket_count_, |
| 94 | const hasher& hf = hasher{}, |
| 95 | const key_equal& eql = key_equal{}, |
| 96 | const allocator_type& alloc = allocator_type{}) |
| 97 | : unordered_map{bucket_count, hf, eql, alloc} |
| 98 | { |
| 99 | insert(first, last); |
| 100 | } |
| 101 | |
| 102 | unordered_map(const unordered_map& other) |
| 103 | : unordered_map{other, other.allocator_} |
| 104 | { /* DUMMY BODY */ } |
| 105 | |
| 106 | unordered_map(unordered_map&& other) |
| 107 | : table_{move(other.table_)}, allocator_{move(other.allocator_)} |
| 108 | { /* DUMMY BODY */ } |
nothing calls this directly
no test coverage detected