MCPcopy Create free account
hub / github.com/ceph/ceph / capture

Function capture

src/test/common/test_async_parallel_for_each.cc:37–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template <typename T>
37auto capture(std::optional<T>& opt)
38{
39 return [&opt] (T value) { opt = std::move(value); };
40}
41
42template <typename T>
43auto capture(asio::cancellation_signal& signal, std::optional<T>& opt)

Callers 1

TESTFunction · 0.70

Calls 1

slotMethod · 0.45

Tested by

no test coverage detected