11#ifndef ARK_VM_VALUE_DICT_HPP
12#define ARK_VM_VALUE_DICT_HPP
17#include <ankerl/unordered_dense.h>
39 void set(
const Value& key,
const Value& value);
56 [[nodiscard]]
bool contains(
const Value& key)
const;
63 void remove(
const Value& key);
70 std::vector<Value> keys();
77 [[nodiscard]] std::size_t size()
const;
85 std::string toString(
VM& vm)
const;
90 ankerl::unordered_dense::map<Value, Value>
m_dict;
95 return A.m_dict == B.m_dict;
Default value type handled by the virtual machine.
The ArkScript virtual machine, executing ArkScript bytecode.
ankerl::unordered_dense::map< Value, Value > m_dict
bool operator==(const Namespace &A, const Namespace &B)