Added JsonDocument::size()

This commit is contained in:
Benoit Blanchon
2019-02-25 11:07:01 +01:00
parent 4181de119c
commit e22e62d184
9 changed files with 102 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
return getUpstreamMember().template is<TValue>();
}
FORCE_INLINE size_t size() const {
return getUpstreamMember().size();
}
template <typename TValue>
FORCE_INLINE typename VariantTo<TValue>::type to() {
return getOrAddUpstreamMember().template to<TValue>();