|
@ -86,12 +86,11 @@ namespace storm { |
|
|
buckets = new uint64_t[bucketCount](); |
|
|
buckets = new uint64_t[bucketCount](); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BitVector::~BitVector() { |
|
|
BitVector::~BitVector() { |
|
|
if (buckets != nullptr) { |
|
|
if (buckets != nullptr) { |
|
|
delete buckets; |
|
|
|
|
|
|
|
|
delete[] buckets; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template<typename InputIterator> |
|
|
template<typename InputIterator> |
|
@ -219,7 +218,7 @@ namespace storm { |
|
|
std::fill_n(newBuckets + this->bucketCount(), newBucketCount - this->bucketCount(), 0); |
|
|
std::fill_n(newBuckets + this->bucketCount(), newBucketCount - this->bucketCount(), 0); |
|
|
} |
|
|
} |
|
|
if (buckets != nullptr) { |
|
|
if (buckets != nullptr) { |
|
|
delete buckets; |
|
|
|
|
|
|
|
|
delete[] buckets; |
|
|
} |
|
|
} |
|
|
buckets = newBuckets; |
|
|
buckets = newBuckets; |
|
|
bitCount = newLength; |
|
|
bitCount = newLength; |
|
@ -243,7 +242,7 @@ namespace storm { |
|
|
uint64_t* newBuckets = new uint64_t[newBucketCount]; |
|
|
uint64_t* newBuckets = new uint64_t[newBucketCount]; |
|
|
std::copy_n(buckets, newBucketCount, newBuckets); |
|
|
std::copy_n(buckets, newBucketCount, newBuckets); |
|
|
if (buckets != nullptr) { |
|
|
if (buckets != nullptr) { |
|
|
delete buckets; |
|
|
|
|
|
|
|
|
delete[] buckets; |
|
|
} |
|
|
} |
|
|
buckets = newBuckets; |
|
|
buckets = newBuckets; |
|
|
bitCount = newLength; |
|
|
bitCount = newLength; |
|
|