| 234 | static const value_type& element(const slot_type* slot) { return slot->value; } |
| 235 | template <class... Args> |
| 236 | static void construct(Alloc *alloc, slot_type *slot, Args &&... args) { |
| 237 | std::allocator_traits<Alloc>::construct(*alloc, |
| 238 | &slot->mutable_value, |
| 239 | std::forward<Args>(args)...); |
| 240 | } |
| 241 | // Construct this slot by moving from another slot. |
| 242 | static void construct(Alloc* alloc, slot_type* slot, slot_type* other) { |
| 243 | emplace(slot); |