System::Text::Json::Serialization::Metadata::UnboxRef(const SmartPtr<Object>&) function
Unboxes a boxed value type to a mutable reference allowing in-place modification of the boxed value. Supports both BoxedValue<T> wrappers and raw T instances.
template<class T> std::enable_if<!std::is_enum<T>::value &&IsBoxable<T>::value &&std::is_base_of<Object, T>::value, T &>::type System::Text::Json::Serialization::Metadata::UnboxRef(const SmartPtr<Object> &obj)
Template parameters
| Parameter | Description |
|---|
| T | Value type derived from Object. |
Arguments
Return Value
Mutable reference to the stored value.
Exceptions
System::Text::Json::Serialization::Metadata::UnboxRef(const SmartPtr<Object>&) function
Unboxes a boxed value type to a mutable reference allowing in-place modification of the boxed value. Supports BoxedValue<T> wrappers only, for value types not derived from Object.
template<class T> std::enable_if<!std::is_enum<T>::value &&IsBoxable<T>::value &&!std::is_base_of<Object, T>::value, T &>::type System::Text::Json::Serialization::Metadata::UnboxRef(const SmartPtr<Object> &obj)
Template parameters
| Parameter | Description |
|---|
| T | Value type not derived from Object. |
Arguments
Return Value
Mutable reference to the stored value.
Exceptions
See Also