mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add some 'reserve' operations.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user