MCPcopy Create free account
hub / github.com/pybind/pybind11 / IntPairs

Method IntPairs

tests/test_sequences_and_iterators.cpp:378–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 class IntPairs {
377 public:
378 explicit IntPairs(std::vector<std::pair<int, int>> data) : data_(std::move(data)) {}
379 const std::pair<int, int> *begin() const { return data_.data(); }
380 // .end() only required for py::make_iterator(self) overload
381 const std::pair<int, int> *end() const { return data_.data() + data_.size(); }

Callers 3

test_nonref_iteratorsFunction · 0.80

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected