Пример #1
0
container::~container()
{
	clear();
	
	{
		POOLLIST_DELETE(m_va_pl, variant_array, VARIANT_ARRAY_DELETE(*n));
		POOLLIST_DELETE(m_vm_pl, variant_map, VARIANT_MAP_DELETE(*n));
		POOLLIST_DELETE(m_v_pl, variant, USE(n));
	}
	
	{
		POOLLIST_CLEAR(m_cva_pl, variant_array, ARRAY_DEEP_CLEAR(n->va, variant_array *));
		POOLLIST_CLEAR(m_cvm_pl, variant_map, HASHMAP_CLEAR(n->vm));
		POOLLIST_CLEAR(m_cv_pl, variant, USE(n));
		
		POOLLIST_DELETE(m_cva_pl, variant_array, VARIANT_ARRAY_DELETE(*n));
		POOLLIST_DELETE(m_cvm_pl, variant_map, VARIANT_MAP_DELETE(*n));
		POOLLIST_DELETE(m_cv_pl, variant, USE(n));
	}
}
Пример #2
0
void buildinfuncnet::clear()
{
	// 节省内存同时让maxsize严格
	POOLLIST_CLEAR(m_buffer, buffer, BUFFER_DELETE(n->t));
	POOLLIST_CLEAR(m_selector, selector, USE(n->t));
}