MCPcopy Create free account
hub / github.com/ThePhD/sol2 / as

Method as

include/sol/lua_value.hpp:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121 template <typename T>
122 decltype(auto) as() const {
123 ref_value.push();
124 return stack::pop<T>(ref_value.lua_state());
125 }
126
127 template <typename T>
128 bool is() const {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
lua_stateMethod · 0.45

Tested by

no test coverage detected