We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24c4674 commit cb1ff15Copy full SHA for cb1ff15
1 file changed
include/pgvector/sparsevec.hpp
@@ -10,6 +10,7 @@
10
#include <cstddef>
11
#include <limits>
12
#include <ostream>
13
+#include <ranges>
14
#include <span>
15
#include <stdexcept>
16
#include <unordered_map>
@@ -56,7 +57,7 @@ class SparseVector {
56
57
indices_.push_back(i);
58
}
59
- std::sort(indices_.begin(), indices_.end());
60
+ std::ranges::sort(indices_);
61
62
values_.reserve(indices_.size());
63
for (const auto i : indices_) {
0 commit comments