MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / destroy

Method destroy

include/rabitqlib/utils/array.hpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 [[nodiscard]] constexpr auto bytes() const -> size_t { return sizeof(T) * size(); }
56
57 void destroy() {
58 size_t num_elements = size();
59 atraits::deallocate(allocator_, pointer_, num_elements);
60 pointer_ = nullptr;
61 }
62
63 public:
64 using allocator_type = Alloc;

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.70

Tested by

no test coverage detected