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

Function range_len

tools/python/src/basic.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134unsigned long range_len(const std::pair<unsigned long, unsigned long>& r)
135{
136 if (r.second > r.first)
137 return r.second-r.first;
138 else
139 return 0;
140}
141
142template <typename T>
143void resize(T& v, unsigned long n) { v.resize(n); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected