MCPcopy Create free account
hub / github.com/baidu/babylon / S

Class S

test/test_move_only_function.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 typedef MoveOnlyFunction<void(::std::string)> MOF;
14 {
15 struct S {
16 S() = default;
17 S(S&&) = default;
18 S(const S&) = default;
19 void operator()(::std::string) const {}
20 } s;
21 auto value = ::std::is_constructible<MOF, S>::value;
22 ASSERT_TRUE(value);
23 MOF(::std::move(s))("10086");

Callers 1

TESTFunction · 0.70

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.56