sparse_set: const correctness

This commit is contained in:
Michele Caini
2024-03-06 10:40:31 +01:00
parent 6b707d6af1
commit 2fba813e23

View File

@@ -218,7 +218,7 @@ class basic_sparse_set {
std::swap(lhs, rhs);
}
underlying_type policy_to_head() {
underlying_type policy_to_head() const noexcept {
return traits_type::entity_mask * (mode != deletion_policy::swap_only);
}