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

Method func

test/test_move_only_function.cpp:200–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198TEST(move_only_function, support_normal_function) {
199 struct S {
200 static ::std::string func(::std::string s) {
201 return "10086" + s;
202 }
203 };
204 auto ret = MoveOnlyFunction<::std::string(::std::string)>(S::func)("10010");
205 ASSERT_EQ("1008610010", ret);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected