mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
8618e39486
- 🎨 Refactor the CMake a whle bunch
12 lines
577 B
ReStructuredText
12 lines
577 B
ReStructuredText
variadic_results
|
|
================
|
|
*push multiple disparate arguments into lua*
|
|
|
|
.. code-block:: cpp
|
|
|
|
struct variadic_results : std::vector<object> { ... };
|
|
|
|
This type allows someone to prepare multiple returns before returning them into Lua. It derives from ``std::vector``, so it can be used exactly like that, and objects can be added using the various constructors and functions relating to :doc:`sol::object<object>`. You can see it and other return-type helpers in action `here`_.
|
|
|
|
.. _here: https://github.com/ThePhD/sol2/blob/develop/examples/source/multi_results.cpp
|