8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 06:03:02 +01:00

Add methods to allow usage of GenericMap's accessors with "auto" keyword.

This commit is contained in:
Adriano dos Santos Fernandes 2020-09-06 16:31:34 -03:00
parent 56309d6ca7
commit 4f5208bf99

View File

@ -75,9 +75,6 @@ public:
bool fastRemove() { return m_Accessor.fastRemove(); }
private:
Accessor(const Accessor&);
Accessor& operator=(const Accessor&);
TreeAccessor m_Accessor;
};
@ -94,9 +91,6 @@ public:
ValueType* locate(const KeyType& key) { return m_Accessor.locate(key); }
private:
ConstAccessor(const ConstAccessor&);
ConstAccessor& operator=(const ConstAccessor&);
ConstTreeAccessor m_Accessor;
};
@ -254,6 +248,16 @@ public:
size_t count() const { return mCount; }
Accessor accessor()
{
return Accessor(this);
}
ConstAccessor constAccessor() const
{
return ConstAccessor(this);
}
private:
ValuesTree tree;
size_t mCount;