MCPcopy Create free account
hub / github.com/boostorg/histogram / prepare

Function prepare

test/adaptive_storage_test.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <typename T>
26adaptive_storage_type prepare(std::size_t n, const T x) {
27 std::unique_ptr<T[]> v(new T[n]);
28 std::fill(v.get(), v.get() + n, static_cast<T>(0));
29 v.get()[0] = x;
30 return adaptive_storage_type(n, v.get());
31}
32
33template <typename T>
34adaptive_storage_type prepare(std::size_t n) {

Callers 4

serialization_implFunction · 0.85
equal_implFunction · 0.85
increase_and_grow_implFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected