Add more constructors

This commit is contained in:
Christian Mazakas
2023-04-20 12:57:29 -07:00
parent c304284773
commit e08f9f11a1
2 changed files with 89 additions and 0 deletions

View File

@@ -197,6 +197,27 @@ namespace boost {
{
}
concurrent_flat_map(std::initializer_list<value_type> il,
size_type n = detail::foa::default_bucket_count,
const hasher& hf = hasher(), const key_equal& eql = key_equal(),
const allocator_type& a = allocator_type())
: concurrent_flat_map(n, hf, eql, a)
{
this->insert(il.begin(), il.end());
}
concurrent_flat_map(size_type n, const allocator_type& a)
: concurrent_flat_map(n, hasher(), key_equal(), a)
{
}
concurrent_flat_map(
size_type n, const hasher& hf, const allocator_type& a)
: concurrent_flat_map(n, hf, key_equal(), a)
{
}
/// Capacity
///