Skip to content

Commit c51cede

Browse files
authored
Change indexCapacity to return size instead of capacity (#778)
1 parent df0664c commit c51cede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VecSim/algorithms/brute_force/brute_force.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ size_t BruteForceIndex<DataType, DistType>::indexSize() const {
225225

226226
template <typename DataType, typename DistType>
227227
size_t BruteForceIndex<DataType, DistType>::indexCapacity() const {
228-
return this->idToLabelMapping.capacity();
228+
return this->idToLabelMapping.size();
229229
}
230230

231231
template <typename DataType, typename DistType>

0 commit comments

Comments
 (0)