Represents a value in the table stored in memory with a type.
More...
#include <Table.hpp>
|
template<typename T > |
static SL_SYMBOL Data | fromValue (const T &value) |
| Construct a data entry from a value.
|
|
template<typename T > |
static SL_SYMBOL std::shared_ptr< void > | emplace (const T &value) |
| Allocate room and copy the memory of a given value.
|
|
|
std::shared_ptr< void > | data |
|
int | type |
|
Represents a value in the table stored in memory with a type.
◆ emplace()
template<typename T >
static SL_SYMBOL std::shared_ptr< void > SL::Table::Data::emplace |
( |
const T & | value | ) |
|
|
static |
Allocate room and copy the memory of a given value.
- Template Parameters
-
- Parameters
-
- Returns
- std::shared_ptr<void> Pointer to the allocated entry
◆ fromValue()
template<typename T >
static SL_SYMBOL Data SL::Table::Data::fromValue |
( |
const T & | value | ) |
|
|
static |
Construct a data entry from a value.
- Template Parameters
-
- Parameters
-
- Returns
- Data The entry
The documentation for this struct was generated from the following file:
- /Users/runner/work/simple-lua/simple-lua/include/SL/Lua/Table.hpp