I have ;
class object { // any private datas token in heap area public : ~object () ; };
You can simply call delete tmp[i];. But I would recommend to use std::vector< std::shared_ptr< object > > instead.
delete tmp[i];
std::vector< std::shared_ptr< object > >