Lines Matching defs:begin
44 auto it = x.begin();
66 checks.append(static_cast<std::size_t>(x.end() - x.begin()) == x.size());
67 checks.append((x.begin() + static_cast<std::ptrdiff_t>(x.size())) == x.end());
68 checks.append(x.begin() < x.end());
171 const float *begin() const { return m_data; }
192 .def("__iter__", [](const Sequence &s) { return py::make_iterator(s.begin(), s.end()); },
238 decltype(map.cbegin()) begin() const { return map.cbegin(); }
252 .def("__iter__", [](const StringMap &map) { return py::make_key_iterator(map.begin(), map.end()); },
254 .def("items", [](const StringMap &map) { return py::make_iterator(map.begin(), map.end()); },
262 const std::pair<int, int>* begin() const { return data_.data(); }
269 return py::make_iterator(NonZeroIterator<std::pair<int, int>>(s.begin()), NonZeroSentinel());
272 return py::make_key_iterator(NonZeroIterator<std::pair<int, int>>(s.begin()), NonZeroSentinel());
324 return std::count_if(o.begin(), o.end(), [](py::handle h) { return h.is_none(); });
328 auto it = std::find_if(o.begin(), o.end(), [](py::handle h) { return h.is_none(); });
333 return std::count_if(d.begin(), d.end(), [](std::pair<py::handle, py::handle> p) {
345 return py::make_iterator(std::begin(s), std::end(s));