Add some 'reserve' operations.

This commit is contained in:
David Schwartz
2013-08-21 14:25:43 -07:00
committed by JoelKatz
parent 76589f5084
commit 37bfafe3bb

View File

@@ -1221,6 +1221,10 @@ public:
{
return mPath.size ();
}
void reserve (size_t n)
{
mPath.reserve(n);
}
bool isEmpty () const
{
return mPath.empty ();
@@ -1340,6 +1344,10 @@ public:
{
return value.size ();
}
void reserve (size_t n)
{
value.reserve(n);
}
const STPath& getPath (int off) const
{
return value[off];