Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ceph/ceph
/ capture
Function
capture
src/test/common/test_async_spawn_group.cc:35–38 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
34
template <typename T>
35
auto capture(std::optional<T>& opt)
36
{
37
return [&opt] (T value) { opt = std::move(value); };
38
}
39
40
template <typename T>
41
auto capture(asio::cancellation_signal& signal, std::optional<T>& opt)
Callers
1
TEST
Function · 0.70
Calls
1
slot
Method · 0.45
Tested by
no test coverage detected