mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Protected constructor of MapBase<>
This commit is contained in:
parent
37f78c9261
commit
990a531674
@ -101,10 +101,6 @@ class UAVCAN_EXPORT MapBase : Noncopyable
|
||||
};
|
||||
|
||||
protected:
|
||||
/// Derived class destructor must call removeAll();
|
||||
~MapBase() { }
|
||||
|
||||
public:
|
||||
MapBase(KVPair* static_buf, unsigned num_static_entries, IAllocator& allocator)
|
||||
: allocator_(allocator)
|
||||
, static_(static_buf)
|
||||
@ -113,6 +109,10 @@ public:
|
||||
assert(Key() == Key());
|
||||
}
|
||||
|
||||
/// Derived class destructor must call removeAll();
|
||||
~MapBase() { }
|
||||
|
||||
public:
|
||||
Value* access(const Key& key);
|
||||
|
||||
/// If entry with the same key already exists, it will be replaced
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user