\rst The value which marks the end of the iteration. ``it == iterator::sentinel()`` is equivalent to catching ``StopIteration`` in Python. .. code-block:: cpp void foo(py::iterator it) { while (it != py::iterator::sentinel()) { // use `*it` ++it; } } \endrst */
| 1581 | } |
| 1582 | \endrst */ |
| 1583 | static iterator sentinel() { return {}; } |
| 1584 | |
| 1585 | friend bool operator==(const iterator &a, const iterator &b) { return a->ptr() == b->ptr(); } |
| 1586 | friend bool operator!=(const iterator &a, const iterator &b) { return a->ptr() != b->ptr(); } |
nothing calls this directly
no outgoing calls
no test coverage detected