MCPcopy Create free account
hub / github.com/davisking/dlib / allocate

Method allocate

dlib/std_allocator.h:86–92  ·  view source on GitHub ↗

allocate but don't initialize num elements of type T

Source from the content-addressed store, hash-verified

84
85 //allocate but don't initialize num elements of type T
86 pointer allocate (
87 size_type num,
88 typename std_allocator<void,M>::const_pointer = 0
89 )
90 {
91 return (pointer) pool.allocate_array(num*sizeof(T));
92 }
93
94 // This function is not required by the C++ standard but some versions of the STL
95 // distributed with gcc erroneously require it. See the bug report for further

Callers

nothing calls this directly

Calls 1

allocate_arrayMethod · 0.45

Tested by

no test coverage detected