forked from boostorg/unordered
Add expliicit destructors, copy assignment operators
This commit is contained in:
@ -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
|
allocator_type get_allocator() const noexcept
|
||||||
{
|
{
|
||||||
return table_.get_allocator();
|
return table_.get_allocator();
|
||||||
|
@ -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
|
allocator_type get_allocator() const noexcept
|
||||||
{
|
{
|
||||||
return table_.get_allocator();
|
return table_.get_allocator();
|
||||||
|
Reference in New Issue
Block a user