sparse_set/storage: try to please the code coverage tool
This commit is contained in:
@@ -325,11 +325,11 @@ public:
|
||||
* @param allocator Allocator to use (possibly default-constructed).
|
||||
*/
|
||||
explicit basic_sparse_set(deletion_policy pol, const allocator_type &allocator = {})
|
||||
: reserved{allocator, 0u},
|
||||
: reserved{allocator, size_type{}},
|
||||
sparse{},
|
||||
packed{},
|
||||
bucket{0u},
|
||||
count{0u},
|
||||
bucket{},
|
||||
count{},
|
||||
free_list{tombstone},
|
||||
mode{pol}
|
||||
{}
|
||||
@@ -342,8 +342,8 @@ public:
|
||||
: reserved{std::move(other.reserved)},
|
||||
sparse{std::exchange(other.sparse, alloc_ptr_pointer{})},
|
||||
packed{std::exchange(other.packed, alloc_pointer{})},
|
||||
bucket{std::exchange(other.bucket, 0u)},
|
||||
count{std::exchange(other.count, 0u)},
|
||||
bucket{std::exchange(other.bucket, size_type{})},
|
||||
count{std::exchange(other.count, size_type{})},
|
||||
free_list{std::exchange(other.free_list, tombstone)},
|
||||
mode{other.mode}
|
||||
{}
|
||||
@@ -364,8 +364,8 @@ public:
|
||||
reserved = std::move(other.reserved);
|
||||
sparse = std::exchange(other.sparse, alloc_ptr_pointer{});
|
||||
packed = std::exchange(other.packed, alloc_pointer{});
|
||||
bucket = std::exchange(other.bucket, 0u);
|
||||
count = std::exchange(other.count, 0u);
|
||||
bucket = std::exchange(other.bucket, size_type{});
|
||||
count = std::exchange(other.count, size_type{});
|
||||
free_list = std::exchange(other.free_list, tombstone);
|
||||
mode = other.mode;
|
||||
|
||||
@@ -874,7 +874,7 @@ public:
|
||||
}
|
||||
|
||||
free_list = tombstone;
|
||||
count = 0u;
|
||||
count = {};
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
@@ -335,7 +335,7 @@ public:
|
||||
*/
|
||||
explicit basic_storage(const allocator_type &allocator)
|
||||
: underlying_type{deletion_policy{comp_traits::in_place_delete::value}, allocator},
|
||||
bucket{allocator, 0u},
|
||||
bucket{allocator, size_type{}},
|
||||
packed{}
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user