File: operator%3D.md

package info (click to toggle)
jsoncons 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,584 kB
  • sloc: cpp: 136,382; sh: 33; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
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.md).