MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / construct_array

Function construct_array

external/basisu/transcoder/basisu_containers.h:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95 template <typename T>
96 inline void construct_array(T* p, size_t n)
97 {
98 T* q = p + n;
99 for (; p != q; ++p)
100 new (static_cast<void*>(p)) T;
101 }
102
103 template <typename T, typename U>
104 inline void construct_array(T* p, size_t n, const U& init)

Callers 4

construct_arrayMethod · 0.85
vectorMethod · 0.85
resizeMethod · 0.85
try_resizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected