Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Naios/function2
/ testSelfContaining
Function
testSelfContaining
test/self-containing-test.cpp:9–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
#include
"function2/function2.hpp"
8
9
bool testSelfContaining() {
10
fu2::function<bool()> first = [] { return true; };
11
fu2::unique_function<bool()> second = first;
12
return first() && second();
13
}
Callers
1
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected