MCPcopy Create free account
hub / github.com/ceph/ceph / construct

Method construct

src/include/cpp-btree/btree.h:236–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

emplaceFunction · 0.50

Tested by

no test coverage detected