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:
Jon Siwek 2020-05-27 17:30:28 -07:00
parent 2cee468eac
commit 0d19e8fb4c
3 changed files with 5 additions and 3 deletions

View file

@ -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