MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / release

Method release

Libraries/Containers/VirtualArray.h:22–27  ·  view source on GitHub ↗

@brief Releases all reserved memory. @warning Does not call destructors of contained elements (use clear() for that).

Source from the content-addressed store, hash-verified

20 /// @brief Releases all reserved memory.
21 /// @warning Does not call destructors of contained elements (use clear() for that).
22 void release()
23 {
24 virtualMemory.release();
25 capacityElements = 0;
26 sizeElements = 0;
27 }
28
29 /// @brief Clears the stable array by calling the destructor of each element.
30 /// @note Does not release reserved memory (use release() for that).

Callers 2

clearMethod · 0.45
resizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected