MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / dyn_array

Method dyn_array

src/util/dyn-array.hpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 public:
20
21 dyn_array(std::size_t size)
22 : cur_size (size),
23 _data (std::make_unique<T[]>(size))
24 {
25 clear();
26 }
27
28 decltype(auto) operator[](std::size_t i) {return _data[i];}
29 decltype(auto) operator[](std::size_t i) const {return _data[i];}

Callers

nothing calls this directly

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected