Add expliicit destructors, copy assignment operators

This commit is contained in:
Christian Mazakas
2022-10-03 14:45:42 -07:00
parent d5fcc77579
commit bf6e381ff2
2 changed files with 20 additions and 0 deletions

View File

@ -97,6 +97,16 @@ namespace boost {
{
}
~unordered_flat_map() = default;
unordered_flat_map& operator=(unordered_flat_map const& other)
{
if (this != &other) {
table_ = other.table_;
}
return *this;
}
allocator_type get_allocator() const noexcept
{
return table_.get_allocator();

View File

@ -96,6 +96,16 @@ namespace boost {
{
}
~unordered_flat_set() = default;
unordered_flat_set& operator=(unordered_flat_set const& other)
{
if (this != &other) {
table_ = other.table_;
}
return *this;
}
allocator_type get_allocator() const noexcept
{
return table_.get_allocator();