Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChaiScript/ChaiScript
/ to_int
Method
to_int
include/chaiscript/utility/json.hpp:338–338 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
336
}
337
338
int64_t to_int() const { bool b; return to_int( b ); }
339
int64_t to_int( bool &ok ) const {
340
ok = (internal.Type == Class::Integral);
341
return ok ? internal.Int : 0;
Callers
1
from_json
Method · 0.80
Calls
1
to_int
Function · 0.85
Tested by
no test coverage detected