MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / pop

Method pop

include/fplus/queue.hpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 {
28 }
29 fplus::maybe<T> pop()
30 {
31 std::unique_lock<std::mutex> lock(mutex_);
32 if (queue_.empty()) {
33 return {};
34 }
35 auto item = queue_.front();
36 queue_.pop_front();
37 return item;
38 }
39
40 void push(const T& item)
41 {

Callers 3

cFunction · 0.45
queue_test.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected