| 112 | using key_t = typename dod::slot_map32<ValueType>::key; |
| 113 | public: |
| 114 | bool get(uint32_t key, ValueType** out) { |
| 115 | std::lock_guard lock{mutex}; |
| 116 | ValueType* ret = map.get(key_t{key}); |
| 117 | *out = ret; |
| 118 | return ret != nullptr; |
| 119 | } |
| 120 | |
| 121 | uint32_t create() { |
| 122 | std::lock_guard lock{mutex}; |