Deallocate allocated memory. Never throws
| 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 |
nothing calls this directly
no test coverage detected