* ������Ϣ������δ�����ѵ���Ϣ���� * @param free_obj {bool} �ͷŵ��� delete ����ɾ����Ϣ���� */
| 56 | * @param free_obj {bool} �ͷŵ��� delete ����ɾ����Ϣ���� |
| 57 | */ |
| 58 | void clear(bool free_obj = false) { |
| 59 | if (free_obj) { |
| 60 | for (typename std::list<T*>::iterator it = |
| 61 | tbox_.begin(); it != tbox_.end(); ++it) { |
| 62 | |
| 63 | delete *it; |
| 64 | } |
| 65 | } |
| 66 | tbox_.clear(); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * ������Ϣ���� |