MCPcopy Create free account
hub / github.com/acl-dev/acl / peek

Method peek

lib_acl_cpp/include/acl_cpp/stdlib/tbox.hpp:204–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 thread_cond cond_;
203
204 T* peek(bool& found_flag) {
205 typename std::list<T*>::iterator it = tbox_.begin();
206 if (it == tbox_.end()) {
207 found_flag = false;
208 return NULL;
209 }
210 found_flag = true;
211 size_--;
212 T* t = *it;
213 tbox_.erase(it);
214 return t;
215 }
216};
217
218} // namespace acl

Callers 1

peekFunction · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected