diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-13 23:38:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-02 06:56:57 (GMT) |
commit | 65a5e0c671fc7d42525a6279aebf9a74de2c97a7 (patch) | |
tree | 77b90ad6ee932956df933acf3e065fa2cdd1f849 /Source/cmLinkedTree.h | |
parent | 348354333a82ce98d733dc2ee939186c53c506f9 (diff) | |
download | CMake-65a5e0c671fc7d42525a6279aebf9a74de2c97a7.zip CMake-65a5e0c671fc7d42525a6279aebf9a74de2c97a7.tar.gz CMake-65a5e0c671fc7d42525a6279aebf9a74de2c97a7.tar.bz2 |
cmLinkedTree: Add Clear API.
Diffstat (limited to 'Source/cmLinkedTree.h')
-rw-r--r-- | Source/cmLinkedTree.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLinkedTree.h b/Source/cmLinkedTree.h index df00b30..3bcb940 100644 --- a/Source/cmLinkedTree.h +++ b/Source/cmLinkedTree.h @@ -155,6 +155,12 @@ public: return iterator(this, 1); } + void Clear() + { + this->UpPositions.clear(); + this->Data.clear(); + } + private: T& GetReference(PositionType pos) { |