wlib-memory
Version:
Memory create, destroy, and allocators for WLib
36 lines • 1.37 kB
JSON
{
"name": "wlib-memory",
"description": "Memory create, destroy, and allocators for WLib",
"keywords": [
"wio",
"c++",
"wlib",
"waterloop",
"memory",
"allocator"
],
"readme": "# wlib-memory\n\nMemory creation and destruction for WLib. Unlike `wlib-malloc` which\nallocates raw memory, `create` and `destroy` will call constructors\nand destructors.\n\n### Usage\nConstructor arguments can be passed to `create`,\n\n```c++\nUserDescription *user = create\u003cUserDescription\u003e(\"John\", \"Smith\", 25);\nchar *characters = create\u003cchar[]\u003e(64);\nint *integer = create\u003cint\u003e(15);\n// ...\ndestroy(user); // implicit type deduction\ndestroy\u003cchar[]\u003e(characters);\ndestroy\u003cint\u003e(integer);\n\n```\n",
"readmeFile": "README.md",
"version": "1.0.4",
"main": ".wio.js",
"dist": {
"integrity": "",
"shasum": "",
"tarball": "",
"fileCount": 0,
"unpackedSize": 0,
"npm-signature": ""
},
"scripts": null,
"dependencies": {
"wlib-malloc": "1.0.4",
"wlib-tmp": "1.0.2"
},
"maintainers": null,
"contributors": null,
"bugs": "",
"author": "Jeff Niu \u003cme@jeffniu.com\u003e (http://jeffniu.com)",
"license": "MIT",
"homepage": "",
"repository": ""
}