| 936 | |
| 937 | public: |
| 938 | array_hash(size_type bucket_count, const Hash& hash, float max_load_factor) |
| 939 | : value_container<T>(), |
| 940 | Hash(hash), |
| 941 | GrowthPolicy(bucket_count), |
| 942 | m_buckets_data(bucket_count > max_bucket_count() |
| 943 | ? throw std::length_error( |
| 944 | "The map exceeds its maximum bucket count.") |
| 945 | : bucket_count), |
| 946 | m_buckets(m_buckets_data.empty() ? static_empty_bucket_ptr() |
| 947 | : m_buckets_data.data()), |
| 948 | m_nb_elements(0) { |
| 949 | this->max_load_factor(max_load_factor); |
| 950 | } |
| 951 | |
| 952 | array_hash(const array_hash& other) |
| 953 | : value_container<T>(other), |
no test coverage detected