| 125 | // indexing |
| 126 | template <typename Key> |
| 127 | node* get(const Key& key, shared_memory_holder pMemory) const { |
| 128 | // NOTE: this returns a non-const node so that the top-level Node can wrap |
| 129 | // it, and returns a pointer so that it can be nullptr (if there is no such |
| 130 | // key). |
| 131 | return static_cast<const node_ref&>(*m_pRef).get(key, pMemory); |
| 132 | } |
| 133 | template <typename Key> |
| 134 | node& get(const Key& key, shared_memory_holder pMemory) { |
| 135 | node& value = m_pRef->get(key, pMemory); |