mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
stylistic
This commit is contained in:
@ -1138,12 +1138,9 @@ public:
|
|||||||
table{0,std::move(x.h()),std::move(x.pred()),al_}
|
table{0,std::move(x.h()),std::move(x.pred()),al_}
|
||||||
{
|
{
|
||||||
if(al()==x.al()){
|
if(al()==x.al()){
|
||||||
size_=x.size_;
|
std::swap(size_,x.size_);
|
||||||
arrays=x.arrays;
|
std::swap(arrays,x.arrays);
|
||||||
ml=x.ml;
|
std::swap(ml,x.ml);
|
||||||
x.size_=0;
|
|
||||||
x.arrays=x.new_arrays(0);
|
|
||||||
x.ml=x.max_load();
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
reserve(x.size());
|
reserve(x.size());
|
||||||
@ -1461,8 +1458,8 @@ private:
|
|||||||
struct destroy_on_exit
|
struct destroy_on_exit
|
||||||
{
|
{
|
||||||
~destroy_on_exit(){this_->destroy_element(p);}
|
~destroy_on_exit(){this_->destroy_element(p);}
|
||||||
table* this_;
|
table *this_;
|
||||||
value_type* p;
|
value_type *p;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::size_t max_load()const
|
std::size_t max_load()const
|
||||||
|
Reference in New Issue
Block a user