mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Add version of Frame::SetElement() taking IntrusivePtr<ID>
Expect the version using raw ID* could go away eventually, but this is convenience for the meantime.
This commit is contained in:
parent
2cee468eac
commit
0d19e8fb4c
3 changed files with 5 additions and 3 deletions
|
@ -66,6 +66,8 @@ public:
|
|||
* @param v the value to associate it with
|
||||
*/
|
||||
void SetElement(const ID* id, IntrusivePtr<Val> v);
|
||||
void SetElement(const IntrusivePtr<ID>& id, IntrusivePtr<Val> v)
|
||||
{ SetElement(id.get(), std::move(v)); }
|
||||
|
||||
/**
|
||||
* Gets the value associated with *id* and returns it. Returns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue