예제 #1
0
void access_byid::destroy()
{
	std::vector<uintptr_t> used_id;
	get_used_id(&used_id);
	for (uintptr_t i = 0; i != used_id.size(); ++i)
	{
		void* x = (void*)this->get_val(used_id[i]);
		on_destroy(x);
	}
	this->clear();
}
예제 #2
0
void access_byid<void*>::destroy()
{
	std::vector<uintptr_t> used_id;
	get_used_id(used_id);
	for (long i = 0; i != static_cast<long>(used_id.size()); ++i)
	{
		void* x = (void*)this->get_val(used_id[i]);
		on_destroy(x);
	}
	this->clear();
}