summaryrefslogtreecommitdiffstats
path: root/Source/cmLinkedTree.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-13 23:38:57 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-08-02 06:56:57 (GMT)
commit65a5e0c671fc7d42525a6279aebf9a74de2c97a7 (patch)
tree77b90ad6ee932956df933acf3e065fa2cdd1f849 /Source/cmLinkedTree.h
parent348354333a82ce98d733dc2ee939186c53c506f9 (diff)
downloadCMake-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.h6
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)
{