Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 450 Bytes

operator=.md

File metadata and controls

16 lines (10 loc) · 450 Bytes

jsoncons::basic_json::operator=

basic_json& operator=(const basic_json& rhs);
basic_json& operator=(basic_json&& rhs) noexcept; (1)

template <class T>
basic_json& operator=(const T& rhs); (2)

basic_json& operator=(const char_type* rhs); (3)

(1) Assigns a new json value to a json variable, replacing it's current contents.

(2) Assigns the templated value to a json variable using json_type_traits.