MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / luaUnpack

Function luaUnpack

source/core/StarLua.hpp:1536–1546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534
1535template <typename Container>
1536LuaVariadic<typename std::decay<Container>::type::value_type> luaUnpack(Container&& c) {
1537 LuaVariadic<typename std::decay<Container>::type::value_type> ret;
1538 if (std::is_rvalue_reference<Container&&>::value) {
1539 for (auto& e : c)
1540 ret.append(std::move(e));
1541 } else {
1542 for (auto const& e : c)
1543 ret.append(e);
1544 }
1545 return ret;
1546}
1547
1548template <typename... Types>
1549LuaTupleReturn<Types...>::LuaTupleReturn(Types const&... args)

Callers 2

handleMessageMethod · 0.85
entityQueryImplFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected