MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / deallocate

Method deallocate

include/win/boost/container/node_allocator.hpp:169–181  ·  view source on GitHub ↗

Deallocate allocated memory. Never throws

Source from the content-addressed store, hash-verified

167 //!Deallocate allocated memory.
168 //!Never throws
169 void deallocate(const pointer &ptr, size_type count) BOOST_NOEXCEPT_OR_NOTHROW
170 {
171 (void)count;
172 if(Version == 1 && count == 1){
173 typedef container_detail::shared_node_pool
174 <sizeof(T), NodesPerBlock> shared_pool_t;
175 typedef container_detail::singleton_default<shared_pool_t> singleton_t;
176 singleton_t::instance().deallocate_node(ptr);
177 }
178 else{
179 boost_cont_free(ptr);
180 }
181 }
182
183 //!Deallocates all free blocks of the pool
184 static void deallocate_free_blocks() BOOST_NOEXCEPT_OR_NOTHROW

Callers

nothing calls this directly

Calls 2

instanceClass · 0.85
deallocate_nodeMethod · 0.45

Tested by

no test coverage detected