MemberProxy.link()

This commit is contained in:
Benoit Blanchon
2022-03-14 19:44:57 +01:00
parent b02d979ceb
commit 0cd588c249
2 changed files with 12 additions and 0 deletions

View File

@@ -113,6 +113,10 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
getUpstreamMember().remove(key);
}
FORCE_INLINE void link(VariantConstRef value) {
getOrAddUpstreamMember().link(value);
}
template <typename TValue>
FORCE_INLINE typename VariantTo<TValue>::type to() {
return getOrAddUpstreamMember().template to<TValue>();