MCPcopy Create free account
hub / github.com/ShivaBhattacharjee/KeyZen / Buffer

Method Buffer

data/cpp/07_move_semantics.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5class Buffer {
6public:
7 explicit Buffer(size_t size)
8 : data_(new char[size]), size_(size) {
9 std::cout << "alloc " << size << "\n";
10 }
11
12 ~Buffer() {
13 delete[] data_;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected