MCPcopy Create free account
hub / github.com/BinomialLLC/basis_universal / construct_array

Function construct_array

transcoder/basisu_containers.h:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template <typename T>
117 inline void construct_array(T* p, size_t n)
118 {
119 T* q = p + n;
120 for (; p != q; ++p)
121 new (static_cast<void*>(p)) T;
122 }
123
124 template <typename T, typename U>
125 inline void construct_array(T* p, size_t n, const U& init)

Callers 4

construct_arrayMethod · 0.85
vectorMethod · 0.85
setMethod · 0.85
try_resizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected