MCPcopy Create free account
hub / github.com/davisking/dlib / next

Method next

tools/python/src/basic.cpp:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 unsigned long cur;
78
79 unsigned long next()
80 {
81 if (cur < range.second)
82 {
83 return cur++;
84 }
85 else
86 {
87 PyErr_SetString(PyExc_StopIteration, "No more data.");
88 throw py::error_already_set();
89 }
90 }
91};
92
93range_iter make_range_iterator (const std::pair<unsigned long,unsigned long>& p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected