File: operator%3D.md

package info (click to toggle)
jsoncons 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 18,276 kB
  • sloc: cpp: 143,266; sh: 34; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
### `jsoncons::basic_json::operator=`

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

template <typename 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](json_type_traits/json_type_traits.md).