diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-10 06:55:35 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-12-10 06:55:35 -0800 |
commit | d84b81bc12e6a22e442d5dce38e59222119311f0 (patch) | |
tree | 5a94e8830ba02c46c77098aeb9a240748b15d632 /starts/meaning-vm/level-0/memorystore.hpp | |
parent | 363fea37f8943ca3d9b3241660bf271fb6e54bc5 (diff) | |
download | standingwithresilience-d84b81bc12e6a22e442d5dce38e59222119311f0.tar.gz standingwithresilience-d84b81bc12e6a22e442d5dce38e59222119311f0.zip |
readded basic allocation; held pointers with a std::unique_ptr; added some words around increasing relevence
Diffstat (limited to 'starts/meaning-vm/level-0/memorystore.hpp')
-rw-r--r-- | starts/meaning-vm/level-0/memorystore.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/memorystore.hpp b/starts/meaning-vm/level-0/memorystore.hpp index eff4235..f4faa13 100644 --- a/starts/meaning-vm/level-0/memorystore.hpp +++ b/starts/meaning-vm/level-0/memorystore.hpp @@ -38,9 +38,13 @@ extern ref level0allocations(); // allocator for concepts internal to level0 } +ref basic_alloc(std::any data = {}); +void basic_dealloc(ref allocated); + ref alloc(ref allocator, std::any data = {}); // new concept void alloc(ref allocated, ref allocator); // extra ownership for concept void realloc(ref allocated, ref allocator); // move ownership for concept to allocator +[[deprecated("can make recursion: turn to workable habits")]] void dealloc(ref allocated, ref allocator); // remove ownership for concept std::size_t allocated(); |