MCPcopy Create free account
hub / github.com/acl-dev/acl / clear

Method clear

lib_acl_cpp/include/acl_cpp.cn/stdlib/tbox.hpp:58–67  ·  view source on GitHub ↗

* ������Ϣ������δ�����ѵ���Ϣ���� * @param free_obj {bool} �ͷŵ��� delete ����ɾ����Ϣ���� */

Source from the content-addressed store, hash-verified

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 * ������Ϣ����

Callers 3

clearFunction · 0.45
~dns_resFunction · 0.45
runMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected