mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
next batch
This commit is contained in:
@@ -57,6 +57,7 @@ template<typename Graph, typename Range>
|
||||
vector<size_t> to_indices(const Range &range, const Graph &g) {
|
||||
vector<size_t> indices;
|
||||
for (const auto &elem : range) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
indices.push_back(g[elem].index);
|
||||
}
|
||||
sort(indices.begin(), indices.end());
|
||||
@@ -68,6 +69,7 @@ vector<size_t> to_indices(const std::initializer_list<T> &range,
|
||||
const Graph &g) {
|
||||
vector<size_t> indices;
|
||||
for (const auto &elem : range) {
|
||||
// cppcheck-suppress useStlAlgorithm
|
||||
indices.push_back(g[elem].index);
|
||||
}
|
||||
sort(indices.begin(), indices.end());
|
||||
|
Reference in New Issue
Block a user