MCPcopy Create free account
hub / github.com/cvanaret/Uno / iterator

Method iterator

uno/linear_algebra/SparseVector.hpp:22–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 using value_type = std::pair<size_t, ElementType>;
21
22 iterator(const SparseVector& vector, size_t index): vector(vector), index(index) { }
23
24 value_type operator*() const {
25 return {this->vector.indices[this->index], this->vector.values[this->index]};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected