MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / clear

Method clear

benchmarks/dlib/array/array_kernel.h:311–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 typename mem_manager
310 >
311 void array<T,mem_manager>::
312 clear (
313 )
314 {
315 reset();
316 last_pos = 0;
317 array_size = 0;
318 if (array_elements)
319 {
320 pool.deallocate_array(array_elements);
321 }
322 array_elements = 0;
323 max_array_size = 0;
324
325 }
326
327// ----------------------------------------------------------------------------------------
328

Callers

nothing calls this directly

Calls 1

deallocate_arrayMethod · 0.45

Tested by

no test coverage detected