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

Method begin

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

Source from the content-addressed store, hash-verified

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(); }
382

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected