Specialization for C++ std::strings.
More...
#include <duk.hpp>
|
static void | push (duk_context *ctx, const std::string &value) |
|
static auto | get (duk_context *ctx, duk_idx_t index) -> std::string |
|
static auto | require (duk_context *ctx, duk_idx_t index) -> std::string |
|
Specialization for C++ std::strings.
◆ get()
Get a C++ std::string.
Uses duk_get_lstring.
- Parameters
-
ctx | the Duktape context |
index | the value index |
- Returns
- the converted value
◆ push()
Push a C++ std::string.
Uses duk_push_lstring
- Parameters
-
ctx | the Duktape context |
value | the value |
◆ require()
Require a C++ std::string.
Uses duk_require_lstring.
- Parameters
-
ctx | the Duktape context |
index | the value index |
- Returns
- the converted value
The documentation for this struct was generated from the following file: