Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dobiasd/FunctionalPlus
/ pop_all
Method
pop_all
include/fplus/queue.hpp:49–55 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
}
48
49
std::vector<T> pop_all()
50
{
51
std::unique_lock<std::mutex> mlock(mutex_);
52
const auto result = fplus::convert_container<std::vector<T>>(queue_);
53
queue_.clear();
54
return result;
55
}
56
57
std::vector<T> wait_and_pop_all()
58
{
Callers
1
queue_test.cpp
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected