| 180 | |
| 181 | template <typename Key, class Comparator> |
| 182 | typename SkipList<Key, Comparator>::Node* SkipList<Key, Comparator>::NewNode( |
| 183 | const Key& key, int height) { |
| 184 | char* const node_memory = arena_->AllocateAligned( |
| 185 | sizeof(Node) + sizeof(std::atomic<Node*>) * (height - 1)); |
| 186 | return new (node_memory) Node(key); |
| 187 | } |
| 188 | |
| 189 | template <typename Key, class Comparator> |
| 190 | inline SkipList<Key, Comparator>::Iterator::Iterator(const SkipList* list) { |
nothing calls this directly
no test coverage detected