Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePhD/sol2
/ func_opt_ret_bool
Function
func_opt_ret_bool
tests/run_time/source/basic.cpp:36–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
inline namespace sol2_tests_basic {
35
36
bool func_opt_ret_bool(sol::optional<int> i) {
37
if (i) {
38
INFO(i.value());
39
}
40
else {
41
INFO(
"optional isn't set"
);
42
}
43
return true;
44
}
45
46
struct base1 {
47
int a1 = 250;
Callers
nothing calls this directly
Calls
1
value
Method · 0.45
Tested by
no test coverage detected