Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePhD/sol2
/ callable
Class
callable
examples/source/docs/as_function.cpp:5–9 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3
4
int main() {
5
struct callable {
6
int operator()(int a, bool b) {
7
return a + (b ? 10 : 20);
8
}
9
};
10
11
12
sol::state lua;
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected